Search the documentation
50 pages for write.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it. Cut at 50, so a narrower query shows the rest.
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
…cing), a tenth of the input price, and each turn pays the 1.25x cache-write rate only for what is new. Across Anthropic's measured runs, cache reads are routinely the largest single component of task…
pricing
Claude Developer Platform · in the page
about-claude/pricing
…| Base Input Tokens | 5m Cache Writes | 1h Cache Writes | Cache Hits & Refreshes | Output Tokens | | ------------------------------------------------------------…
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 out the actual words in this interaction so that you can also get a…
Create an instance of the Claude API client
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
…ts). The tunnel status flips to **Active**. </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
…nt directory.", }, ], } ); Console.WriteLine(response); ``` ```go Go client := anthropic.NewClient() response, err := client.Messages.New(context.TODO(), a…
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 like `"failed"`, include what went wrong and what Claude should try ne…
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, you execute the code, you return the results. This is the most common case: the vast majority of tool-use traffi…
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
…multi-tool workflows. --- 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 may see 5-minute cache writes even when every `cache_contro…
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
…, Claude Opus 4.6, Claude Sonnet 5, and Claude Sonnet 4.6. 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…
Admin
Claude Developer Platform · in the page
api/admin
…ise organization with RBAC groups, and requires the key to carry the `write:rbac_groups` scope. maxItems: 100 #### Returns - `Invite object` - `id: string` ID of the Invite. - `accepte…
Analytics
Claude Developer Platform · in the page
api/admin/analytics
…epted/rejected counts for a single Claude Code tool type. - `write_tool: ToolActionCounts` Accepted/rejected counts for a single Claude Code tool type. - `cowork_metrics: obje…
Connectors
Claude Developer Platform · in the page
api/admin/analytics/connectors
…d on a classified surface lands in exactly one of `read_call_count`, `write_call_count`, or `unclassified_call_count`, so the three sum to the day's classified calls. Classification is forward-only pe…
Get Connector Usage
Claude Developer Platform · in the page
api/admin/analytics/connectors/list
…d on a classified surface lands in exactly one of `read_call_count`, `write_call_count`, or `unclassified_call_count`, so the three sum to the day's classified calls. Classification is forward-only pe…
Users
Claude Developer Platform · in the page
api/admin/analytics/users
…epted/rejected counts for a single Claude Code tool type. - `write_tool: ToolActionCounts` Accepted/rejected counts for a single Claude Code tool type. - `cowork_metrics: obje…
List User Activity
Claude Developer Platform · in the page
api/admin/analytics/users/list
…epted/rejected counts for a single Claude Code tool type. - `write_tool: ToolActionCounts` Accepted/rejected counts for a single Claude Code tool type. - `cowork_metrics: obje…
Federation Rules
Claude Developer Platform · in the page
api/admin/federation_rules
…or null` Service account's display name at read time. Ignored on writes. - `applies_to_all_workspaces: optional boolean` When true, enable this rule for every workspace in the org (including…
Archive Federation Rule
Claude Developer Platform · in the page
api/admin/federation_rules/archive
…null` Service account's display name at read time. Ignored on writes. - `token_lifetime_seconds: number` Lifetime in seconds of access tokens minted via this rule. Minted tokens are ca…