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

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.

Claude Code in Slack Claude Code CLI · title slack Configure your terminal for Claude Code Claude Code CLI · title terminal-config Use Claude Code in VS Code Claude Code CLI · title vs-code Get started with Claude Code in the cloud Claude Code CLI · title web-quickstart Claude Tag for Claude Code users Claude Documentation · title claude-tag/concepts/for-claude-code-users Connect Claude Code to Claude for Government Claude Documentation · title government/deploy-claude-code/configure Code in Claude Desktop on 3P Claude Documentation · title third-party/claude-desktop/code SEP-2164: Standardize Resource Not Found Error Code Model Context Protocol · title seps/2164-resource-not-found-error routines-fire Claude Developer Platform · path api/claude-code/routines-fire Artifacts Claude Developer Platform · path api/compliance/apps/code/artifacts First request Claude Developer Platform · path manage-claude/claude-code-analytics-api Read and request reviews on a pull request Claude Code CLI · path code-review-pull-requests additional-resources Claude Developer Platform · in the page about-claude/additional-resources …rk-knife" href="https://platform.claude.com/cookbook"> Replicable code samples and implementations. </Card> <Card title="Use case guides" icon="compass" href="https://platform.claude.com/docs… api-credits-for-subscribers Claude Developer Platform · in the page about-claude/api-credits-for-subscribers …and playground | | **Doesn't cover** | Claude Code, extra usage in the Claude apps | | **Refresh** | Each billing cycle… glossary Claude Developer Platform · in the page about-claude/glossary …pond to words, subwords, characters, or even bytes (in the case of Unicode). For Claude, the number of characters a token represents depends on the model and the language. Claude 4.7 and later models… model-deprecations Claude Developer Platform · in the page about-claude/model-deprecations …well before the retirement date of your current model. 3. Update your code to use the recommended replacement model as soon as possible. 4. Contact the support team if you need help with migration or… choosing-a-model Claude Developer Platform · in the page about-claude/models/choosing-a-model …coding, agent, and enterprise workloads | Claude Sonnet 5.5 | Code generation, data analysis, content creation, visual understanding, agentic tool use… Or, for the model with the same capabilities and no access approval requirement: Claude Developer Platform · in the page about-claude/models/migration-guide …/platform.claude.com/docs/en/build-with-claude/working-with-messages) code. If you use [Claude Managed Agents](https://platform.claude.com/docs/en/managed-agents/overview), no changes beyond updating… optimizing-for-cost-and-intelligence Claude Developer Platform · in the page about-claude/models/optimizing-for-cost-and-intelligence …en/build-with-claude/compaction-on-demand) as a keep-alive request. <CodeGroup exclude="shell:CLI, python, typescript, csharp, go, java, php, ruby"> ```bash cURL # Within 4 minutes of the last re… pricing Claude Developer Platform · in the page about-claude/pricing …ses) retain their existing pricing. For implementation details and code examples: * [Amazon Bedrock global vs regional endpoints](https://platform.claude.com/docs/en/build-with-claude/claude-in-… commerce-agents Claude Developer Platform · in the page about-claude/use-case-guides/commerce-agents …ld-with-claude/working-with-messages), the [Claude Agent SDK](https://code.claude.com/docs/en/agent-sdk/overview), and [Claude Managed Agents](https://platform.claude.com/docs/en/managed-agents/overvi… content-moderation Claude Developer Platform · in the page about-claude/use-case-guides/content-moderation …s generated by a social media platform might include the following: <CodeGroup exclude="shell"> ```python Python client = anthropic.Anthropic() allowed_user_comments = [ "This movie was… customer-support-chat Claude Developer Platform · in the page about-claude/use-case-guides/customer-support-chat …enerate a message, and one that processes each incoming user input. <CodeGroup exclude="shell"> ```python Python # In your chatbot.py, import these from the config.py you wrote earlier: # from… legal-summarization Claude Developer Platform · in the page about-claude/use-case-guides/legal-summarization …ease agreement, you might want to extract the following key points: <CodeGroup exclude="shell"> ```python Python details_to_extract = [ "Parties involved (sublessor, sublessee, and original… overview Claude Developer Platform · in the page about-claude/use-case-guides/overview …run your own tools and infrastructure. The [Claude Agent SDK](https://code.claude.com/docs/en/agent-sdk/overview) sits in between, providing the agent loop and tool execution in a process you operate.… ticket-routing Claude Developer Platform · in the page about-claude/use-case-guides/ticket-routing …ou. </Tip> Here's an example ticket routing classification prompt: <CodeGroup exclude="shell"> <CodeGroupItem language="cURL"> Build the prompt in code. </CodeGroupItem> <CodeGroupItem la… PDF Processing Claude Developer Platform · in the page agents-and-tools/agent-skills/best-practices …ell. First, you'll need to install it using pip. Then you can use the code below... ``` The concise version assumes Claude already has information about PDFs and how libraries work. ### Set appropri… claude-api-skill Claude Developer Platform · in the page agents-and-tools/agent-skills/claude-api-skill …Go, Java, PHP, Ruby, and cURL. The skill comes bundled with [Claude Code](https://code.claude.com/docs/en/overview) and is also available in the open-source [Anthropic skills repository](https://git… enterprise Claude Developer Platform · in the page agents-and-tools/agent-skills/enterprise …------- | ------------------------------------------------------- | | Code execution | Scripts in the Skill directory (`*.py`, `*.sh`, `*.js`) |… PDF Processing Claude Developer Platform · in the page agents-and-tools/agent-skills/overview …ge. They're available across Claude's products: create them in Claude Code, upload them through the Claude API, or add them in claude.ai settings. On [Claude Platform on AWS](https://platform.claude.c… quickstart Claude Developer Platform · in the page agents-and-tools/agent-skills/quickstart …ne continuous script, with any imports and client setup at the top: <CodeGroup> ```bash cURL # List Anthropic-managed Skills curl --fail-with-body -sS "https://api.anthropic.com/v1/skills?sourc… mcp-connector Claude Developer Platform · in the page agents-and-tools/mcp-connector …le enables all tools from an MCP server with default configuration: <CodeGroup> ```bash cURL curl https://api.anthropic.com/v1/messages \ -H "Content-Type: application/json" \ -H "X-API-K… overview Claude Developer Platform · in the page agents-and-tools/mcp-tunnels/overview …the server's documentation). The proxy forwards the path untouched. <CodeGroup> ```bash cURL curl https://api.anthropic.com/v1/messages \ -H "Content-Type: application/json" \ -H "X-API-K… reference Claude Developer Platform · in the page agents-and-tools/mcp-tunnels/reference …certificates at a time, which allows zero-downtime rotation. * PEM-encoded, single certificate, up to 8 kB. * `BasicConstraints` extension present with `CA:TRUE`, marked critical. * `SubjectKeyIdenti… troubleshooting Claude Developer Platform · in the page agents-and-tools/mcp-tunnels/troubleshooting …gistration_endpoint": "https://auth.<tunnel-domain>/register", "code_challenge_methods_supported": ["S256"] } ``` </Step> <Step title="Point the MCP server at the tunnel issuer">… advisor-tool Claude Developer Platform · in the page agents-and-tools/tool-use/advisor-tool …the beta header `advisor-tool-2026-03-01` in your requests. </Note> <CodeGroup> ```bash cURL curl https://api.anthropic.com/v1/messages \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropi… bash-tool Claude Developer Platform · in the page agents-and-tools/tool-use/bash-tool …t setup:** Install packages, configure environments ## Quick start <CodeGroup> ```bash cURL curl https://api.anthropic.com/v1/messages \ -H "content-type: application/json" \ -H "x-api-k… browser-use-sdk Claude Developer Platform · in the page agents-and-tools/tool-use/browser-use-sdk …se-a-driver-from-a-provider). With one, an agent takes a few lines of code. If none fits, write your own with a browser automation library such as Playwright. Most of this page is about the browser t… browser-use-tool Claude Developer Platform · in the page agents-and-tools/tool-use/browser-use-tool …](https://platform.claude.com/docs/en/api/messages/create) request. <CodeGroup> ```bash cURL curl https://api.anthropic.com/v1/messages \ -H "content-type: application/json" \ -H "x-api-k… build-a-tool-using-agent Claude Developer Platform · in the page agents-and-tools/tool-use/build-a-tool-using-agent …andalone. Copy any ring into a fresh file and it will run without the code from earlier rings. </Note> ## Ring 1: Single tool, single turn The smallest possible tool-using program: one tool, one use… computer-use-tool Claude Developer Platform · in the page agents-and-tools/tool-use/computer-use-tool …use/bash-tool), which Claude typically uses alongside computer use: <CodeGroup> ```bash cURL curl https://api.anthropic.com/v1/messages \ -H "content-type: application/json" \ -H "x-api-k… define-tools Claude Developer Platform · in the page agents-and-tools/tool-use/define-tools …Each example must be valid according to the tool's `input_schema`: <CodeGroup> ```bash cURL curl -sS https://api.anthropic.com/v1/messages \ -H "content-type: application/json" \ -H "x-a… fine-grained-tool-streaming Claude Developer Platform · in the page agents-and-tools/tool-use/fine-grained-tool-streaming …first fragment of a large parameter, such as a document or a block of code, and the fragments arrive through the same [Streaming messages](https://platform.claude.com/docs/en/build-with-claude/streami… handle-tool-calls Claude Developer Platform · in the page agents-and-tools/tool-use/handle-tool-calls …nd `input` from the `tool_use` block. 2. Run the actual tool in your code base corresponding to that tool name, passing in the tool `input`. 3. Continue the conversation by sending a new message wit… how-tool-use-works Claude Developer Platform · in the page agents-and-tools/tool-use/how-tool-use-works …l never runs anything on its own. It emits a structured request, your code (or Anthropic's servers) runs the operation, and the result flows back into the conversation. This contract makes the model… manage-tool-context Claude Developer Platform · in the page agents-and-tools/tool-use/manage-tool-context …ammatic tool calling collapses a sequence of tool calls into a single code block that Claude writes and Anthropic's code execution sandbox runs. Rather than five roundtrips of `tool_use` and `tool_res… memory-tool Claude Developer Platform · in the page agents-and-tools/tool-use/memory-tool …ool#path-traversal-protection) before you write it. ## Basic usage <CodeGroup> ```bash cURL curl https://api.anthropic.com/v1/messages \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropi… overview Claude Developer Platform · in the page agents-and-tools/tool-use/overview …-and-tools/tool-use/web-search-tool), which Anthropic runs for you: <CodeGroup> ```bash cURL curl https://api.anthropic.com/v1/messages \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropi… parallel-tool-use Claude Developer Platform · in the page agents-and-tools/tool-use/parallel-tool-use …s working. Run it with `ANTHROPIC_API_KEY` set in your environment: <CodeGroup exclude="shell"> <CodeGroupItem language="cURL"> This end-to-end test needs more logic than a single shell command… Process results programmatically Claude Developer Platform · in the page agents-and-tools/tool-use/programmatic-tool-calling …rogrammatic-tool-calling description: Let Claude call your tools from code in the code execution container, cutting model round trips and token use in multi-tool workflows. featureMetadata: status:…
Feedback