1,295 pages for code.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
server-tools
Claude Developer Platform · in the page
agents-and-tools/tool-use/server-tools
…n` stop reason. Here's how to handle the `pause_turn` stop reason: <CodeGroup> ```bash cURL # Initial request. If "stop_reason" in the response is "pause_turn", continue # the turn by re-sendi…
strict-tool-use
Claude Developer Platform · in the page
agents-and-tools/tool-use/strict-tool-use
…rue`, the response always contains `passengers: 2`. ## Quick start <CodeGroup> ```bash cURL curl https://api.anthropic.com/v1/messages \ -H "content-type: application/json" \ -H "x-api-k…
text-editor-tool
Claude Developer Platform · in the page
agents-and-tools/tool-use/text-editor-tool
…view and modify text files, helping you debug, fix, and improve your code or other text documents. This allows Claude to directly interact with your files, providing hands-on assistance rather than j…
tool-combinations
Claude Developer Platform · in the page
agents-and-tools/tool-use/tool-combinations
…-calls) for the full request shape. ## Research agent: web\_search + code\_execution Search finds sources; code execution analyzes and synthesizes. Claude searches for data, then writes Python to pr…
tool-reference
Claude Developer Platform · in the page
agents-and-tools/tool-use/tool-reference
…e | | [Code execution tool](https://platform.claude.com/docs/en/agents-and-tools/tool-use/code-execution-tool) | `code_execution_20260521…
Log at info level
Claude Developer Platform · in the page
agents-and-tools/tool-use/tool-runner
…lock. To return structured data, such as a JSON object or a number, encode it as a string first. <Tabs exclude="shell"> <Tab title="Python"> Use the `@beta_tool` decorator to define tools with…
tool-search-tool
Claude Developer Platform · in the page
agents-and-tools/tool-use/tool-search-tool
…owing example includes the tool search tool and two deferred tools: <CodeGroup> ```bash cURL curl https://api.anthropic.com/v1/messages \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropi…
tool-use-with-prompt-caching
Claude Developer Platform · in the page
agents-and-tools/tool-use/tool-use-with-prompt-caching
…ts-and-tools/tool-use/server-tools) such as web search, web fetch, or code execution, the API automatically places a cache breakpoint on the server tool result before running the next iteration of the…
troubleshooting-tool-use
Claude Developer Platform · in the page
agents-and-tools/tool-use/troubleshooting-tool-use
…--- | | String comparison on tool inputs fails with newer models | Unicode and forward-slash escaping differs between model versions | Parse with `json.loads()` or `JSON.parse()`. Never do raw string…
web-fetch-tool
Claude Developer Platform · in the page
agents-and-tools/tool-use/web-fetch-tool
…260318`) supports **dynamic filtering**: Claude can write and execute code to filter fetched content before it reaches the context window, keeping only relevant information and discarding the rest. Th…
web-search-tool
Claude Developer Platform · in the page
agents-and-tools/tool-use/web-search-tool
…th `web_search_20260209` and later versions, Claude can write and run code that filters the search results before they reach the context window (**dynamic filtering**), keeping only relevant informati…
Beta
Claude Developer Platform · in the page
api/beta
…thinking-2025-05-14"` - `"interleaved-thinking-2025-05-14"` - `"code-execution-2025-05-22"` - `"extended-cache-ttl-2025-04-11"` - `"context-1m-2025-08-07"` - `"context-management-2025-0…
beta-headers
Claude Developer Platform · in the page
api/beta-headers
…java: `.addBeta()`) and sends the `anthropic-beta` header for you: <CodeGroup> ```bash cURL curl https://api.anthropic.com/v1/messages \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropi…
Agents
Claude Developer Platform · in the page
api/beta/agents
…thinking-2025-05-14"` - `"interleaved-thinking-2025-05-14"` - `"code-execution-2025-05-22"` - `"extended-cache-ttl-2025-04-11"` - `"context-1m-2025-08-07"` - `"context-management-2025-0…
Archive Agent
Claude Developer Platform · in the page
api/beta/agents/archive
…thinking-2025-05-14"` - `"interleaved-thinking-2025-05-14"` - `"code-execution-2025-05-22"` - `"extended-cache-ttl-2025-04-11"` - `"context-1m-2025-08-07"` - `"context-management-2025-0…
Create Agent
Claude Developer Platform · in the page
api/beta/agents/create
…thinking-2025-05-14"` - `"interleaved-thinking-2025-05-14"` - `"code-execution-2025-05-22"` - `"extended-cache-ttl-2025-04-11"` - `"context-1m-2025-08-07"` - `"context-management-2025-0…
List Agents
Claude Developer Platform · in the page
api/beta/agents/list
…thinking-2025-05-14"` - `"interleaved-thinking-2025-05-14"` - `"code-execution-2025-05-22"` - `"extended-cache-ttl-2025-04-11"` - `"context-1m-2025-08-07"` - `"context-management-2025-0…
Get Agent
Claude Developer Platform · in the page
api/beta/agents/retrieve
…thinking-2025-05-14"` - `"interleaved-thinking-2025-05-14"` - `"code-execution-2025-05-22"` - `"extended-cache-ttl-2025-04-11"` - `"context-1m-2025-08-07"` - `"context-management-2025-0…
Update Agent
Claude Developer Platform · in the page
api/beta/agents/update
…thinking-2025-05-14"` - `"interleaved-thinking-2025-05-14"` - `"code-execution-2025-05-22"` - `"extended-cache-ttl-2025-04-11"` - `"context-1m-2025-08-07"` - `"context-management-2025-0…
Versions
Claude Developer Platform · in the page
api/beta/agents/versions
…thinking-2025-05-14"` - `"interleaved-thinking-2025-05-14"` - `"code-execution-2025-05-22"` - `"extended-cache-ttl-2025-04-11"` - `"context-1m-2025-08-07"` - `"context-management-2025-0…
List Agent Versions
Claude Developer Platform · in the page
api/beta/agents/versions/list
…thinking-2025-05-14"` - `"interleaved-thinking-2025-05-14"` - `"code-execution-2025-05-22"` - `"extended-cache-ttl-2025-04-11"` - `"context-1m-2025-08-07"` - `"context-management-2025-0…
Deployment Runs
Claude Developer Platform · in the page
api/beta/deployment_runs
…thinking-2025-05-14"` - `"interleaved-thinking-2025-05-14"` - `"code-execution-2025-05-22"` - `"extended-cache-ttl-2025-04-11"` - `"context-1m-2025-08-07"` - `"context-management-2025-0…
List Deployment Runs
Claude Developer Platform · in the page
api/beta/deployment_runs/list
…thinking-2025-05-14"` - `"interleaved-thinking-2025-05-14"` - `"code-execution-2025-05-22"` - `"extended-cache-ttl-2025-04-11"` - `"context-1m-2025-08-07"` - `"context-management-2025-0…
Get Deployment Run
Claude Developer Platform · in the page
api/beta/deployment_runs/retrieve
…thinking-2025-05-14"` - `"interleaved-thinking-2025-05-14"` - `"code-execution-2025-05-22"` - `"extended-cache-ttl-2025-04-11"` - `"context-1m-2025-08-07"` - `"context-management-2025-0…
Deployments
Claude Developer Platform · in the page
api/beta/deployments
…thinking-2025-05-14"` - `"interleaved-thinking-2025-05-14"` - `"code-execution-2025-05-22"` - `"extended-cache-ttl-2025-04-11"` - `"context-1m-2025-08-07"` - `"context-management-2025-0…
Archive Deployment
Claude Developer Platform · in the page
api/beta/deployments/archive
…thinking-2025-05-14"` - `"interleaved-thinking-2025-05-14"` - `"code-execution-2025-05-22"` - `"extended-cache-ttl-2025-04-11"` - `"context-1m-2025-08-07"` - `"context-management-2025-0…
Create Deployment
Claude Developer Platform · in the page
api/beta/deployments/create
…thinking-2025-05-14"` - `"interleaved-thinking-2025-05-14"` - `"code-execution-2025-05-22"` - `"extended-cache-ttl-2025-04-11"` - `"context-1m-2025-08-07"` - `"context-management-2025-0…
List Deployments
Claude Developer Platform · in the page
api/beta/deployments/list
…thinking-2025-05-14"` - `"interleaved-thinking-2025-05-14"` - `"code-execution-2025-05-22"` - `"extended-cache-ttl-2025-04-11"` - `"context-1m-2025-08-07"` - `"context-management-2025-0…
Pause Deployment
Claude Developer Platform · in the page
api/beta/deployments/pause
…thinking-2025-05-14"` - `"interleaved-thinking-2025-05-14"` - `"code-execution-2025-05-22"` - `"extended-cache-ttl-2025-04-11"` - `"context-1m-2025-08-07"` - `"context-management-2025-0…
Get Deployment
Claude Developer Platform · in the page
api/beta/deployments/retrieve
…thinking-2025-05-14"` - `"interleaved-thinking-2025-05-14"` - `"code-execution-2025-05-22"` - `"extended-cache-ttl-2025-04-11"` - `"context-1m-2025-08-07"` - `"context-management-2025-0…
Run Deployment Now
Claude Developer Platform · in the page
api/beta/deployments/run
…thinking-2025-05-14"` - `"interleaved-thinking-2025-05-14"` - `"code-execution-2025-05-22"` - `"extended-cache-ttl-2025-04-11"` - `"context-1m-2025-08-07"` - `"context-management-2025-0…
Unpause Deployment
Claude Developer Platform · in the page
api/beta/deployments/unpause
…thinking-2025-05-14"` - `"interleaved-thinking-2025-05-14"` - `"code-execution-2025-05-22"` - `"extended-cache-ttl-2025-04-11"` - `"context-1m-2025-08-07"` - `"context-management-2025-0…
Update Deployment
Claude Developer Platform · in the page
api/beta/deployments/update
…thinking-2025-05-14"` - `"interleaved-thinking-2025-05-14"` - `"code-execution-2025-05-22"` - `"extended-cache-ttl-2025-04-11"` - `"context-1m-2025-08-07"` - `"context-management-2025-0…
Dreams
Claude Developer Platform · in the page
api/beta/dreams
…thinking-2025-05-14"` - `"interleaved-thinking-2025-05-14"` - `"code-execution-2025-05-22"` - `"extended-cache-ttl-2025-04-11"` - `"context-1m-2025-08-07"` - `"context-management-2025-0…
Archive a Dream
Claude Developer Platform · in the page
api/beta/dreams/archive
…thinking-2025-05-14"` - `"interleaved-thinking-2025-05-14"` - `"code-execution-2025-05-22"` - `"extended-cache-ttl-2025-04-11"` - `"context-1m-2025-08-07"` - `"context-management-2025-0…
Cancel a Dream
Claude Developer Platform · in the page
api/beta/dreams/cancel
…thinking-2025-05-14"` - `"interleaved-thinking-2025-05-14"` - `"code-execution-2025-05-22"` - `"extended-cache-ttl-2025-04-11"` - `"context-1m-2025-08-07"` - `"context-management-2025-0…
Create a Dream
Claude Developer Platform · in the page
api/beta/dreams/create
…thinking-2025-05-14"` - `"interleaved-thinking-2025-05-14"` - `"code-execution-2025-05-22"` - `"extended-cache-ttl-2025-04-11"` - `"context-1m-2025-08-07"` - `"context-management-2025-0…
List Dreams
Claude Developer Platform · in the page
api/beta/dreams/list
…thinking-2025-05-14"` - `"interleaved-thinking-2025-05-14"` - `"code-execution-2025-05-22"` - `"extended-cache-ttl-2025-04-11"` - `"context-1m-2025-08-07"` - `"context-management-2025-0…
Get a Dream
Claude Developer Platform · in the page
api/beta/dreams/retrieve
…thinking-2025-05-14"` - `"interleaved-thinking-2025-05-14"` - `"code-execution-2025-05-22"` - `"extended-cache-ttl-2025-04-11"` - `"context-1m-2025-08-07"` - `"context-management-2025-0…
Environments
Claude Developer Platform · in the page
api/beta/environments
…thinking-2025-05-14"` - `"interleaved-thinking-2025-05-14"` - `"code-execution-2025-05-22"` - `"extended-cache-ttl-2025-04-11"` - `"context-1m-2025-08-07"` - `"context-management-2025-0…
Archive Environment
Claude Developer Platform · in the page
api/beta/environments/archive
…thinking-2025-05-14"` - `"interleaved-thinking-2025-05-14"` - `"code-execution-2025-05-22"` - `"extended-cache-ttl-2025-04-11"` - `"context-1m-2025-08-07"` - `"context-management-2025-0…
Create Environment
Claude Developer Platform · in the page
api/beta/environments/create
…thinking-2025-05-14"` - `"interleaved-thinking-2025-05-14"` - `"code-execution-2025-05-22"` - `"extended-cache-ttl-2025-04-11"` - `"context-1m-2025-08-07"` - `"context-management-2025-0…
Delete Environment
Claude Developer Platform · in the page
api/beta/environments/delete
…thinking-2025-05-14"` - `"interleaved-thinking-2025-05-14"` - `"code-execution-2025-05-22"` - `"extended-cache-ttl-2025-04-11"` - `"context-1m-2025-08-07"` - `"context-management-2025-0…
List Environments
Claude Developer Platform · in the page
api/beta/environments/list
…thinking-2025-05-14"` - `"interleaved-thinking-2025-05-14"` - `"code-execution-2025-05-22"` - `"extended-cache-ttl-2025-04-11"` - `"context-1m-2025-08-07"` - `"context-management-2025-0…
Get Environment
Claude Developer Platform · in the page
api/beta/environments/retrieve
…thinking-2025-05-14"` - `"interleaved-thinking-2025-05-14"` - `"code-execution-2025-05-22"` - `"extended-cache-ttl-2025-04-11"` - `"context-1m-2025-08-07"` - `"context-management-2025-0…
Update Environment
Claude Developer Platform · in the page
api/beta/environments/update
…thinking-2025-05-14"` - `"interleaved-thinking-2025-05-14"` - `"code-execution-2025-05-22"` - `"extended-cache-ttl-2025-04-11"` - `"context-1m-2025-08-07"` - `"context-management-2025-0…
Work
Claude Developer Platform · in the page
api/beta/environments/work
…thinking-2025-05-14"` - `"interleaved-thinking-2025-05-14"` - `"code-execution-2025-05-22"` - `"extended-cache-ttl-2025-04-11"` - `"context-1m-2025-08-07"` - `"context-management-2025-0…
Acknowledge Work
Claude Developer Platform · in the page
api/beta/environments/work/ack
…thinking-2025-05-14"` - `"interleaved-thinking-2025-05-14"` - `"code-execution-2025-05-22"` - `"extended-cache-ttl-2025-04-11"` - `"context-1m-2025-08-07"` - `"context-management-2025-0…
Record Heartbeat
Claude Developer Platform · in the page
api/beta/environments/work/heartbeat
…thinking-2025-05-14"` - `"interleaved-thinking-2025-05-14"` - `"code-execution-2025-05-22"` - `"extended-cache-ttl-2025-04-11"` - `"context-1m-2025-08-07"` - `"context-management-2025-0…
List Work Items
Claude Developer Platform · in the page
api/beta/environments/work/list
…thinking-2025-05-14"` - `"interleaved-thinking-2025-05-14"` - `"code-execution-2025-05-22"` - `"extended-cache-ttl-2025-04-11"` - `"context-1m-2025-08-07"` - `"context-management-2025-0…