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

769 pages for write.

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

Catch security issues as Claude writes code Claude Code CLI · title security-guidance Write a credential helper Claude Documentation · title third-party/claude-desktop/credential-helper Or, for the model with the same capabilities and no access approval requirement: Claude Developer Platform · in the page about-claude/models/migration-guide …var response = await client.Messages.Create(parameters); Console.WriteLine(response); ``` ```go Go client := anthropic.NewClient() response, err := client.Messages.New(conte… optimizing-for-cost-and-intelligence Claude Developer Platform · in the page about-claude/models/optimizing-for-cost-and-intelligence …icing) instead of the input price, and each turn pays the 1.25x cache-write rate only for what is new. **What good looks like.** * Over a full day of real traffic, agent loops read a median 84% of t… pricing Claude Developer Platform · in the page about-claude/pricing …| Base input tokens | 5m cache writes | 1h cache writes | Cache hits and refreshes | Output tokens | | :------------------------------------------------… commerce-agents Claude Developer Platform · in the page about-claude/use-case-guides/commerce-agents …and store terms only from tool results in the conversation, and cart writes accept only product IDs that a catalog or order tool returned in that session. Checkout stages a summary the customer confi… content-moderation Claude Developer Platform · in the page about-claude/use-case-guides/content-moderation …the results foreach (var comment in userComments) { Console.WriteLine($"\nComment: {comment}"); var (violation, violatedCategories, explanation) = await ModerateMessage(comment, unsafe… customer-support-chat Claude Developer Platform · in the page about-claude/use-case-guides/customer-support-chat …and closes out the conversation <Tip> In the real example that you write for your own use case, you might find it useful to write the actual words in this interaction so that you can also get a sen… legal-summarization Claude Developer Platform · in the page about-claude/use-case-guides/legal-summarization …eement.pdf" ); var documentText = GetLlmText(pdfData); Console.WriteLine(documentText[..Math.Min(50000, documentText.Length)]); ``` ```go Go import ( "bytes" "io" "net/http"… overview Claude Developer Platform · in the page about-claude/use-case-guides/overview …ld-with-claude/working-with-messages) gives you the most control: you write the agent loop and run your own tools and infrastructure. The [Claude Agent SDK](https://code.claude.com/docs/en/agent-sdk/o… ticket-routing Claude Developer Platform · in the page about-claude/use-case-guides/ticket-routing …issue type, urgency, required expertise, or other relevant factors. Write a ticket classification prompt. The initial prompt should contain the contents of the user request and return both the reaso… PDF Processing Claude Developer Platform · in the page agents-and-tools/agent-skills/best-practices …gents-and-tools/agent-skills/best-practices description: Learn how to write effective Skills that Claude can discover and use successfully. --- Good Skills are concise, well-structured, and tested wi… enterprise Claude Developer Platform · in the page agents-and-tools/agent-skills/enterprise …n patterns.** Look for instructions that read sensitive data and then write, send, or encode it for external transmission, including through Claude's conversational responses. <Warning> Never deplo… PDF Processing Claude Developer Platform · in the page agents-and-tools/agent-skills/overview …cs/en/agents-and-tools/agent-skills/best-practices"> Learn how to write effective Skills that Claude can discover and use successfully. </Card> </CardGroup> quickstart Claude Developer Platform · in the page agents-and-tools/agent-skills/quickstart …thropic" }); foreach (var skill in skills.Items) { Console.WriteLine($"{skill.ID}: {skill.DisplayName}"); } ``` ```go Go // List Anthropic-managed Skills skills, err := client.Sk… mcp-connector Claude Developer Platform · in the page agents-and-tools/mcp-connector …ar message = await client.Beta.Messages.Create(parameters); Console.WriteLine(message); ``` ```go Go client := anthropic.NewClient() response, err := client.Beta.Messages.New(context.TODO(… 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 …``` The containers run as the non-root UID `65532` and need write access to `data/`. </Step> <Step title="Write docker-compose.yaml"> The compose file pins images by SHA… overview Claude Developer Platform · in the page agents-and-tools/mcp-tunnels/overview …ar message = await client.Beta.Messages.Create(parameters); Console.WriteLine(message); ``` ```go Go client := anthropic.NewClient() response, err := client.Beta.Messages.New(context.TODO(… quickstart Claude Developer Platform · in the page agents-and-tools/mcp-tunnels/quickstart …badge next to the tunnel's name goes away. </Step> <Step title="Write the sample MCP server"> <Tabs> <Tab title="macOS / Linux"> ```bash cat > hello_server.py <<'EOF'… reference Claude Developer Platform · in the page agents-and-tools/mcp-tunnels/reference …server certificate, registers the CA, retrieves the tunnel token, and writes all outputs to the destination. | Flag | Description… advisor-tool Claude Developer Platform · in the page agents-and-tools/tool-use/advisor-tool …r response = await client.Beta.Messages.Create(parameters); Console.WriteLine(response); ``` ```go Go client := anthropic.NewClient() response, err := client.Beta.Messages.New(context.TODO… bash-tool Claude Developer Platform · in the page agents-and-tools/tool-use/bash-tool …es in the current directory." }, ], } ); Console.WriteLine(response); ``` ```go Go client := anthropic.NewClient() response, err := client.Messages.New(context.TODO(), a… browser-use-sdk Claude Developer Platform · in the page agents-and-tools/tool-use/browser-use-sdk …rovider). 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 toolset. [Computer to… browser-use-tool Claude Developer Platform · in the page agents-and-tools/tool-use/browser-use-tool …var response = await client.Messages.Create(parameters); Console.WriteLine(response); ``` ```go Go client := anthropic.NewClient() response, err := client.Messages.New(context.TODO(), a… build-a-tool-using-agent Claude Developer Platform · in the page agents-and-tools/tool-use/build-a-tool-using-agent …content array contains a tool_use block alongside any text. Console.WriteLine($"stop_reason: {response.StopReason?.Raw()}"); // Find the tool_use block. A response may contain text blocks before… code-execution-tool Claude Developer Platform · in the page agents-and-tools/tool-use/code-execution-tool …}], Tools = [new CodeExecutionTool20250825()] }); Console.WriteLine(message); ``` ```go Go client := anthropic.NewClient() response, err := client.Messages.New(context.Background… computer-use-tool Claude Developer Platform · in the page agents-and-tools/tool-use/computer-use-tool …var response = await client.Messages.Create(parameters); Console.WriteLine(response); ``` ```go Go client := anthropic.NewClient() response, err := client.Messages.New(context.TODO(), a… define-tools Claude Developer Platform · in the page agents-and-tools/tool-use/define-tools …ts-and-tools/tool-use/define-tools description: Specify tool schemas, write effective descriptions, and control when Claude calls your tools. --- ## Prerequisites * Familiarity with the [tool use ov… fine-grained-tool-streaming Claude Developer Platform · in the page agents-and-tools/tool-use/fine-grained-tool-streaming …[ { "name": "make_file", "description": "Write text to a file", "eager_input_streaming": true, "input_schema": { "type": "object",… handle-tool-calls Claude Developer Platform · in the page agents-and-tools/tool-use/handle-tool-calls …rvice API is not available. Please try again later." <Tip> Write instructive error messages. Instead of generic errors such as `"failed"`, include what went wrong and what Claude should try… how-tool-use-works Claude Developer Platform · in the page agents-and-tools/tool-use/how-tool-use-works …on is responsible for. ### User-defined tools (client-executed) You write the schema, run the code, and return the results. This is the most common case: the vast majority of tool-use traffic is [us… manage-tool-context Claude Developer Platform · in the page agents-and-tools/tool-use/manage-tool-context …llapses 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_result`, Claude emits one… memory-tool Claude Developer Platform · in the page agents-and-tools/tool-use/memory-tool …-and-tools/tool-use/memory-tool#path-traversal-protection) before you write it. ## Basic usage <CodeGroup> ```bash cURL curl https://api.anthropic.com/v1/messages \ -H "x-api-key: $ANTHROPIC… overview Claude Developer Platform · in the page agents-and-tools/tool-use/overview …var message = await client.Messages.Create(parameters); Console.WriteLine(message.Content); ``` ```go Go client := anthropic.NewClient() response, err := client.Messages.New(context.TO… parallel-tool-use Claude Developer Platform · in the page agents-and-tools/tool-use/parallel-tool-use …lu_02", "is_error": true, "content": "Not executed: the preceding write_file call failed." } ``` The [computer use tool](https://platform.claude.com/docs/en/agents-and-tools/tool-use/computer-use… Process results programmatically Claude Developer Platform · in the page agents-and-tools/tool-use/programmatic-tool-calling …ammatic tool calling. --- Programmatic tool calling allows Claude to write code that calls your tools programmatically within a [code execution](https://platform.claude.com/docs/en/agents-and-tools/t… server-tools Claude Developer Platform · in the page agents-and-tools/tool-use/server-tools …ion = await client.Messages.Create(continuationParams); Console.WriteLine(continuation); } else { Console.WriteLine(response); } ``` ```go Go client := anthropic.NewClient()… strict-tool-use Claude Developer Platform · in the page agents-and-tools/tool-use/strict-tool-use …var message = await client.Messages.Create(parameters); Console.WriteLine(message); ``` ```go Go client := anthropic.NewClient() response, err := client.Messages.New(context.TODO(), an… text-editor-tool Claude Developer Platform · in the page agents-and-tools/tool-use/text-editor-tool …lp me fix it?", }, ], } ); Console.WriteLine(response); ``` ```go Go client := anthropic.NewClient() response, err := client.Messages.New(context.TODO(), a… tool-combinations Claude Developer Platform · in the page agents-and-tools/tool-use/tool-combinations …de execution analyzes and synthesizes. Claude searches for data, then writes Python to process, tabulate, or visualize it. This pairing is a good fit for questions that require both up-to-date informa… Log at info level Claude Developer Platform · in the page agents-and-tools/tool-use/tool-runner …); await foreach (var message in runner) { Console.WriteLine(message); } ``` </Tab> <Tab title="Go"> Define a tool with `toolrunner.NewBetaToolFromJSONSchema`. The… tool-search-tool Claude Developer Platform · in the page agents-and-tools/tool-use/tool-search-tool …var message = await client.Messages.Create(parameters); Console.WriteLine(message); ``` ```go Go client := anthropic.NewClient() response, err := client.Messages.New(context.TODO(), an… tool-use-with-prompt-caching Claude Developer Platform · in the page agents-and-tools/tool-use/tool-use-with-prompt-caching …t on your own `cache_control` markers. In the response `usage`, these writes appear under `cache_creation.ephemeral_5m_input_tokens`, so you might see 5-minute cache writes even when every `cache_cont… troubleshooting-tool-use Claude Developer Platform · in the page agents-and-tools/tool-use/troubleshooting-tool-use …tform.claude.com/docs/en/agents-and-tools/tool-use/define-tools"> Write schemas and descriptions that steer Claude toward the right tool. </Card> <Card title="Handle tool calls" href="https:/… web-fetch-tool Claude Developer Platform · in the page agents-and-tools/tool-use/web-fetch-tool …ion (`web_fetch_20260318`) supports **dynamic filtering**: Claude can write and execute code to filter fetched content before it reaches the context window, keeping only relevant information and disca… web-search-tool Claude Developer Platform · in the page agents-and-tools/tool-use/web-search-tool …h results. With `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 rele… Beta Claude Developer Platform · in the page api/beta …tools' (thinking turned off, and any short progress updates the model writes between tool calls come back as thinking blocks). False exactly when a request that sends it gets a 400 from this model. A… beta-headers Claude Developer Platform · in the page api/beta-headers …Betas = ["context-management-2025-06-27"], } ); Console.WriteLine(string.Join("\n", message.Content)); ``` ```go Go client := anthropic.NewClient() message, err := client.Beta.… Agents Claude Developer Platform · in the page api/beta/agents …tart workflow runs. Each run follows a plan, a program that the agent writes. A plan can use predefined agents, which are the saved agents in `predefined_agents`, and inline agents, which it defines i… Archive Agent Claude Developer Platform · in the page api/beta/agents/archive …t reach a judgement on evaluates to ask. - `BetaManagedAgentsWriteToolConfig object` Configuration for the write tool. - `type: "write"` - `enabled: boolean`…
Feedback