Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial
HomeDocsSearch
Search the documentation

571 pages for stop.

Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.

Stop Work Claude Developer Platform · title api/beta/environments/work/stop handling-stop-reasons Claude Developer Platform · title build-with-claude/handling-stop-reasons api-credits-for-subscribers Claude Developer Platform · in the page about-claude/api-credits-for-subscribers …balance. * **If the organization has no credits left**, API requests stop until your next monthly API credits arrive. Usage is never charged to your Claude plan. To keep building, purchase credits or… Or, for the model with the same capabilities and no access approval requirement: Claude Developer Platform · in the page about-claude/models/migration-guide …laude Fable 5 runs safety classifiers that can decline requests with `stop_reason: "refusal"`. Claude Mythos 5 does not include these classifiers. See [Refusals and fallback](https://platform.claude.c… optimizing-for-cost-and-intelligence Claude Developer Platform · in the page about-claude/models/optimizing-for-cost-and-intelligence …cs/en/api/rate-limits#setting-lower-limits-for-workspaces) as the backstop. * **Tradeoffs** exchange cost for intelligence: model choice, effort, output caps and session budgets, an elapsed-time clock… claude-api-skill Claude Developer Platform · in the page agents-and-tools/agent-skills/claude-api-skill …4.8 and Claude Opus 4.7 * **Refusal fallback configuration**, adding `stop_reason: "refusal"` handling before reading response content and setting up a [fallback retry path](https://platform.claude.co… enterprise Claude Developer Platform · in the page agents-and-tools/agent-skills/enterprise …ur evaluation suite to measure recall accuracy as you add Skills, and stop adding when performance degrades. Note that API requests support a maximum of 20 Skills for each request (see [Using Agent S… quickstart Claude Developer Platform · in the page agents-and-tools/agent-skills/quickstart …"code_execution_20260521", "name": "code_execution"}], ) print(f"stop_reason={response.stop_reason}, blocks={len(response.content)}") ``` ```typescript TypeScript // Create a message with… console Claude Developer Platform · in the page agents-and-tools/mcp-tunnels/console …other MCP server. </Note> ## Archive a tunnel Archiving immediately stops the tunnel from accepting connections and is permanent. In the Claude Console, go to the [MCP tunnels](https://platform.cla… Edit docker-compose.yaml: increment the integer in the setup service's Claude Developer Platform · in the page agents-and-tools/mcp-tunnels/deploy-compose …network_mode: "service:mcp-proxy" restart: unless-stopped user: "65532:65532" read_only: true security_opt: - no-new-privileges:tr… quickstart Claude Developer Platform · in the page agents-and-tools/mcp-tunnels/quickstart …g.yaml:ro - ./data:/data:ro restart: unless-stopped cloudflared: image: cloudflare/cloudflared@sha256:0e56c13c7058fcef9c4f0e7d83372f82330548dbf8f8b366f… security Claude Developer Platform · in the page agents-and-tools/mcp-tunnels/security …TLS keys, or proxy host has been compromised: <Steps> <Step title="Stop the tunnel stack"> <Tabs> <Tab title="Helm"> ```bash helm uninstall mcp-tunnel -n mcp-tunnel… advisor-tool Claude Developer Platform · in the page agents-and-tools/tool-use/advisor-tool …---------------------------- | | `advisor_result` | `text`, `stop_reason` | The advisor model returns plaintext (for example, Claude Opus 4.8). | | `advisor_redacted_result` | `e… bash-tool Claude Developer Platform · in the page agents-and-tools/tool-use/bash-tool …] ) puts response ``` </CodeGroup> Claude responds with `stop_reason: "tool_use"` and a `tool_use` block that contains the command for your application to run: ```text Output wrap { "i… browser-use-sdk Claude Developer Platform · in the page agents-and-tools/tool-use/browser-use-sdk …ing | Stops | | Any other exception | `ClassName: message` (typescript: `Error: message`), as an error result | Continues… browser-use-tool Claude Developer Platform · in the page agents-and-tools/tool-use/browser-use-tool …puts response ``` </CodeGroup> Claude's first response ends with `stop_reason: "tool_use"` and carries one or more member `tool_use` blocks, each naming a member tool in `name` and carrying `"tool… build-a-tool-using-agent Claude Developer Platform · in the page agents-and-tools/tool-use/build-a-tool-using-agent …determines that a tool call is needed, the response comes back with `stop_reason: "tool_use"` and a `tool_use` content block containing the tool name, a unique `id`, and the structured `input`. Your… code-execution-tool Claude Developer Platform · in the page agents-and-tools/tool-use/code-execution-tool …t the `container` parameter to get a new container. ### `pause_turn` stop reason The response might include a `pause_turn` stop reason, which indicates that the API paused a long-running turn. You m… computer-use-tool Claude Developer Platform · in the page agents-and-tools/tool-use/computer-use-tool …`` </CodeGroup> When Claude acts on the desktop, the response has a `stop_reason` of `tool_use` and contains one or more member `tool_use` blocks, each naming a member tool and carrying `"toolset_nam… fine-grained-tool-streaming Claude Developer Platform · in the page agents-and-tools/tool-use/fine-grained-tool-streaming …might receive partial or invalid JSON. A response that ends with the [stop reason](https://platform.claude.com/docs/en/build-with-claude/handling-stop-reasons) `max_tokens` can also cut a parameter of… handle-tool-calls Claude Developer Platform · in the page agents-and-tools/tool-use/handle-tool-calls …e-works). ## Handling results from client tools The response has a `stop_reason` of `tool_use` and one or more `tool_use` content blocks that include: * `id`: A unique identifier for this particula… how-tool-use-works Claude Developer Platform · in the page agents-and-tools/tool-use/how-tool-use-works …ut back to the model before the response reaches you, unless the loop stops before it completes, most often because it pauses. The response you receive contains `server_tool_use` blocks showing what… memory-tool Claude Developer Platform · in the page agents-and-tools/tool-use/memory-tool …, }) if err != nil { log.Fatal(err) } if message.StopReason != anthropic.StopReasonToolUse { for _, block := range message.Content { if block.Type == "text" { fm… overview Claude Developer Platform · in the page agents-and-tools/tool-use/overview …sh` and `text_editor`) run in your application. Claude responds with `stop_reason: "tool_use"` and one or more `tool_use` blocks. Your code runs the operation and sends back a `tool_result`. **Server… parallel-tool-use Claude Developer Platform · in the page agents-and-tools/tool-use/parallel-tool-use …## Execution semantics When Claude calls tools, the response has a `stop_reason` of `tool_use` and can contain several `tool_use` blocks in a single assistant turn. How you run those calls is your d… Process results programmatically Claude Developer Platform · in the page agents-and-tools/tool-use/programmatic-tool-calling …"] } ] ) puts message ``` </CodeGroup> The response stops with `stop_reason: "tool_use"`, a `container` ID, and a `tool_use` block for `query_database` whose `caller` field identifie… server-tools Claude Developer Platform · in the page agents-and-tools/tool-use/server-tools …ol_use` block appears without its result, and the response ends with `stop_reason: "tool_use"`. The API runs the tool when you return the client `tool_result` blocks in your next request. ## The serv… text-editor-tool Claude Developer Platform · in the page agents-and-tools/tool-use/text-editor-tool …id": "msg_01XAbCDeFgHiJkLmNoPQrStU", "model": "claude-opus-5-5", "stop_reason": "tool_use", "role": "assistant", "content": [ { "type": "text", "text": "I'll help you fix the s… Log at info level Claude Developer Platform · in the page agents-and-tools/tool-use/tool-runner …= 8192; for await (const message of runner) { if (message.stop_reason === "max_tokens") { const current = runner.params.max_tokens; if (current >= MAX_TOKEN_CEILING) {… tool-search-tool Claude Developer Platform · in the page agents-and-tools/tool-use/tool-search-tool …talog, discovers `get_weather`, and calls it. The response ends with `stop_reason: "tool_use"`. Run the discovered tool and return a `tool_result` as in [Handle tool calls](https://platform.claude.com… troubleshooting-tool-use Claude Developer Platform · in the page agents-and-tools/tool-use/troubleshooting-tool-use …s for the client `tool_use` IDs and keep the same `tools` array. See [Stop reasons and fallback](https://platform.claude.com/docs/en/build-with-claude/handling-stop-reasons#tool-use).… web-fetch-tool Claude Developer Platform · in the page agents-and-tools/tool-use/web-fetch-tool …strict to known safe domains * Using the `url_sources` parameter to stop client-side tool results from counting as a source (see [URL sources](https://platform.claude.com/docs/en/agents-and-tools/to… web-search-tool Claude Developer Platform · in the page agents-and-tools/tool-use/web-search-tool …"server_tool_use": { "web_search_requests": 1 } }, "stop_reason": "end_turn" } ``` This example shows a direct search. When a search runs through [dynamic filtering](https://platfor… Beta Claude Developer Platform · in the page api/beta …ax_tokens: number` The maximum number of tokens to generate before stopping. Note that our models may stop _before_ reaching this maximum. This parameter only specifies the absolute maximum numb… Dreams Claude Developer Platform · in the page api/beta/dreams …another `update_existing` dream on the same memory store hasn't fully stopped, the request returns a 409 error. - `type: "update_existing"` - `memory_store_id: string` The ID of the m… Archive a Dream Claude Developer Platform · in the page api/beta/dreams/archive …another `update_existing` dream on the same memory store hasn't fully stopped, the request returns a 409 error. - `type: "update_existing"` - `memory_store_id: string` The ID of… Cancel a Dream Claude Developer Platform · in the page api/beta/dreams/cancel …ancel --- # Cancel a Dream **POST** `/v1/dreams/{dream_id}/cancel` Stop a `pending` or `running` dream. The response shows `status` as `canceled`, unless the dream reached `completed` or `failed`… Create a Dream Claude Developer Platform · in the page api/beta/dreams/create …another `update_existing` dream on the same memory store hasn't fully stopped, the request returns a 409 error. - `type: "update_existing"` - `memory_store_id: string` The ID of the m… List Dreams Claude Developer Platform · in the page api/beta/dreams/list …emory store holds the complete result. - `"failed"` The dream stopped with an error, which `error` describes. If `outputs` references a memory store, that memory store keeps what the drea… Get a Dream Claude Developer Platform · in the page api/beta/dreams/retrieve …another `update_existing` dream on the same memory store hasn't fully stopped, the request returns a 409 error. - `type: "update_existing"` - `memory_store_id: string` The ID of… Environments Claude Developer Platform · in the page api/beta/environments …item - `"queued"` - `"starting"` - `"active"` - `"stopping"` - `"stopped"` - `stop_requested_at: string or null` RFC 3339 timestamp when stop was requested - `stopp… Work Claude Developer Platform · in the page api/beta/environments/work …item - `"queued"` - `"starting"` - `"active"` - `"stopping"` - `"stopped"` - `stop_requested_at: string or null` RFC 3339 timestamp when stop was requested - `stopp… Acknowledge Work Claude Developer Platform · in the page api/beta/environments/work/ack …item - `"queued"` - `"starting"` - `"active"` - `"stopping"` - `"stopped"` - `stop_requested_at: string or null` RFC 3339 timestamp when stop was requested - `stopp… Record Heartbeat Claude Developer Platform · in the page api/beta/environments/work/heartbeat …g" or "active" or 2 more` Current state of the work item (active/stopping/stopped) - `"queued"` - `"starting"` - `"active"` - `"stopping"` - `"stopped"` - `ttl_seconds… List Work Items Claude Developer Platform · in the page api/beta/environments/work/list …- `"queued"` - `"starting"` - `"active"` - `"stopping"` - `"stopped"` - `stop_requested_at: string or null` RFC 3339 timestamp when stop was requested… Poll for Work Claude Developer Platform · in the page api/beta/environments/work/poll …item - `"queued"` - `"starting"` - `"active"` - `"stopping"` - `"stopped"` - `stop_requested_at: string or null` RFC 3339 timestamp when stop was requested - `stopp… Get Work Item Claude Developer Platform · in the page api/beta/environments/work/retrieve …item - `"queued"` - `"starting"` - `"active"` - `"stopping"` - `"stopped"` - `stop_requested_at: string or null` RFC 3339 timestamp when stop was requested - `stopp… Update Work Item Claude Developer Platform · in the page api/beta/environments/work/update …item - `"queued"` - `"starting"` - `"active"` - `"stopping"` - `"stopped"` - `stop_requested_at: string or null` RFC 3339 timestamp when stop was requested - `stopp… Messages Claude Developer Platform · in the page api/beta/messages …ax_tokens: number` The maximum number of tokens to generate before stopping. Note that our models may stop _before_ reaching this maximum. This parameter only specifies the absolute maximum numb… Batches Claude Developer Platform · in the page api/beta/messages/batches …okens: number` The maximum number of tokens to generate before stopping. Note that our models may stop _before_ reaching this maximum. This parameter only specifies the absolute maximum…
Feedback