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

872 pages for auto.

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

prompting-claude-opus-5-5 Claude Developer Platform · in the page build-with-claude/prompt-engineering/prompting-claude-opus-5-5 …, in fewer steps and with fewer tokens. It also sustains long-running autonomous work better than Claude Opus 5, such as multihour audits and migrations of large code bases run end to end with paralle… prompting-claude-sonnet-5 Claude Developer Platform · in the page build-with-claude/prompt-engineering/prompting-claude-sonnet-5 …eractive coding products Token usage and behavior can differ between autonomous, asynchronous coding agents with a single user turn and interactive, synchronous coding agents with multiple user turns… refusals-and-fallback Claude Developer Platform · in the page build-with-claude/refusals-and-fallback …se models and want declined requests to fall through to another model automatically. It also applies when you have seen `"refusal"` in a response and want to know what to do next. Related pages: * [… search-results Claude Developer Platform · in the page build-with-claude/search-results …ed or cached content. In both cases, Claude cites the search results automatically when citations are enabled. No special prompting is needed: ask your question, and citations appear on the text bloc… skills-guide Claude Developer Platform · in the page build-with-claude/skills-guide …fileInfo.SizeBytes) // List all files files := client.Files.ListAutoPaging(context.TODO(), anthropic.FileListParams{}) for files.Next() { file := files.Current() fmt.Printf("%s - %s\n",… streaming Claude Developer Platform · in the page build-with-claude/streaming …_block_delta` events with chunked partial JSON so that the format can automatically support finer granularity in future models. ### Thinking delta When using [thinking with streaming enabled](https:… structured-outputs Claude Developer Platform · in the page build-with-claude/structured-outputs …onfig: { format: zodOutputFormat(ContactInfoSchema) } }); // Automatically parsed and validated console.log(response.parsed_output); ``` Wrap a [Zod](https://zod.dev/) schema in… thinking Claude Developer Platform · in the page build-with-claude/thinking …(`thinking: {type: "enabled"}`) only supports `tool_choice: {"type": "auto"}` (the default) or `tool_choice: {"type": "none"}`. Using `tool_choice: {"type": "any"}` or `tool_choice: {"type": "tool", "… thinking-steering-and-cost Claude Developer Platform · in the page build-with-claude/thinking-steering-and-cost …g for prompt-based steering. Thinking also interleaves with tool use automatically: Claude can think between tool calls, evaluating each tool result before determining what to do next ([interleaved t… thinking-tool-workflows Claude Developer Platform · in the page build-with-claude/thinking-tool-workflows …to the full statement on the Thinking page: * [Limit tool choice to `auto` or `none` in manual mode](https://platform.claude.com/docs/en/build-with-claude/thinking#thinking-with-tool-use): `tool_choi… thinking-troubleshooting Claude Developer Platform · in the page build-with-claude/thinking-troubleshooting …t the model think before it calls a tool, use `tool_choice: {"type": "auto"}` and say in the prompt when to use the tool. ## Tool calls or XML tags appear in the text output A response occasionally… token-counting Claude Developer Platform · in the page build-with-claude/token-counting …differ by a small amount. Token counts might include tokens added automatically by Anthropic for system optimizations. **You are not billed for system-added tokens**. Billing reflects only your co… vision Claude Developer Platform · in the page build-with-claude/vision …| 1,568 px | 1,568 | High-resolution support is automatic on the listed models and requires no beta header or client-side opt-in. The following table shows the downsized resolut… vision-coordinates Claude Developer Platform · in the page build-with-claude/vision-coordinates …zed_image": "downsize"` (the default when the field is omitted) keeps automatic resizing as described on this page. Each image block is checked only against its own setting, so one request can mix ima… working-with-messages Claude Developer Platform · in the page build-with-claude/working-with-messages …] }' ``` ```bash CLI # Option 1: Base64-encoded image (CLI auto-encodes binary @file refs) curl -s "https://platform.claude.com/docs/images/vision-example.jpg" \ -o ./vision-example.j… API usage primer for Claude Claude Developer Platform · in the page claude_api_primer …hp, ruby"> ```bash CLI # Option 1: Base64-encoded image (@ prefix auto-encodes binary files as base64) curl -sSo vision-example.jpg \ https://platform.claude.com/docs/images/vision-example.j… apply Claude Developer Platform · in the page cli-sdks-libraries/cli/apply …run history, and pausing </Card> <Card title="CLI scripting and automation" icon="code" href="https://platform.claude.com/docs/en/cli-sdks-libraries/cli/scripting"> Scripting patterns and us… On a remote host without a browser: Claude Developer Platform · in the page cli-sdks-libraries/cli/authentication …an `ANTHROPIC_WORKSPACE_ID` environment variable, which the CLI reads automatically, or by using the [`--workspace-id` flag](https://platform.claude.com/docs/en/cli-sdks-libraries/cli/using#global-fla… quickstart Claude Developer Platform · in the page cli-sdks-libraries/cli/quickstart …'t need a separate tool such as `jq`, and it paginates list endpoints automatically. <Info> For endpoint-specific parameters and response schemas, see the [API reference](https://platform.claude.co… scripting Claude Developer Platform · in the page cli-sdks-libraries/cli/scripting --- title: CLI scripting and automation url: https://platform.claude.com/docs/en/cli-sdks-libraries/cli/scripting description: Version-control API resources as files with ant apply, chain ant CLI comm… sessions-connect Claude Developer Platform · in the page cli-sdks-libraries/cli/sessions-connect …` and `ant beta:sessions:events send` instead. See [CLI scripting and automation](https://platform.claude.com/docs/en/cli-sdks-libraries/cli/scripting). Press Ctrl+C to detach. The session keeps runn… using Claude Developer Platform · in the page cli-sdks-libraries/cli/using …chain commands and version-control resources, see [CLI scripting and automation](https://platform.claude.com/docs/en/cli-sdks-libraries/cli/scripting). ## Command structure Commands follow a `resou… apple-foundation-models Claude Developer Platform · in the page cli-sdks-libraries/libraries/apple-foundation-models …access token. The Claude for Foundation Models package runs this flow automatically and requests new tokens as they expire; there is no attestation code for you to write. Tokens are scoped to your wo… openai-sdk Claude Developer Platform · in the page cli-sdks-libraries/libraries/openai-sdk …ythos 5.1 don't support forced tool use and return an error, so use `"auto"` on those models. See [Forcing tool use](https://platform.claude.com/docs/en/agents-and-tools/tool-use/define-tools#forcing-… middleware Claude Developer Platform · in the page cli-sdks-libraries/middleware …se returns through Middleware B, then Middleware A, to your code. autonumber participant App as Your code participant M1 as Middleware A participant M2 as Middleware B participant… csharp Claude Developer Platform · in the page cli-sdks-libraries/sdks/csharp …hropicException`: Base class for all exceptions. ## Retries The SDK automatically retries 2 times by default, with a short exponential backoff between requests. Only the following error types are r… go Claude Developer Platform · in the page cli-sdks-libraries/sdks/go …`*url.Error` wrapping `*net.OpError`. ## Retries Certain errors are automatically retried 2 times by default, with a short exponential backoff. The SDK retries by default all connection errors, 408… java Claude Developer Platform · in the page cli-sdks-libraries/sdks/java …n the input parameters. The SDK can derive a tool and its parameters automatically from the structure of an arbitrary Java class: the class's name (converted to snake case) provides the tool name, an… php Claude Developer Platform · in the page cli-sdks-libraries/sdks/php …g.org/psr/psr-18/) for HTTP and discovers any installed PSR-18 client automatically. [Guzzle](https://docs.guzzlephp.org/) is recommended because the SDK configures it for streaming with no additional… For Amazon Bedrock support Claude Developer Platform · in the page cli-sdks-libraries/sdks/python …"condition": "Sunny", } ) # Use the tool_runner to automatically handle tool calls runner = client.beta.messages.tool_runner( max_tokens=1024, model="claude-opus-5-5", t… typescript Claude Developer Platform · in the page cli-sdks-libraries/sdks/typescript …; // req_018EeWyXxfu5pfWkrYcMdjWG ``` ## Retries Certain errors are automatically retried 2 times by default, with a short exponential backoff. Connection errors (for example, because of a network c… get-api-key Claude Developer Platform · in the page get-api-key …rable to use a personal or service account key, as these stop working automatically when their associated account is removed from the organization. ## Create an API key <Steps> <Step title="Sign i… get-started Claude Developer Platform · in the page get-started …API key as an environment variable. The SDK reads `ANTHROPIC_API_KEY` automatically. ```bash export ANTHROPIC_API_KEY="your-api-key-here" ``` </Step> <Step title=… home Claude Developer Platform · in the page home …s" description="Fully managed agent infrastructure. Deploy and manage autonomous agents in stateful sessions with persistent event history." pictogram="clouds"> <HomeCardLink icon="play" href=… access-transparency Claude Developer Platform · in the page manage-claude/access-transparency …to emit an event on each view. * **Events represent human access, not automated processing.** Anthropic's automated safety systems process your content in a secured pipeline with no interactive human… admin-api Claude Developer Platform · in the page manage-claude/admin-api …esh the token. The SDK and the `ant` CLI read `ANTHROPIC_AUTH_TOKEN` automatically. Leave `ANTHROPIC_API_KEY` unset in the same shell so they send the bearer token. Automated workloads skip the login… api-and-data-retention Claude Developer Platform · in the page manage-claude/api-and-data-retention …o be enabled separately by your account team, and enablement does not automatically extend to other organizations under the same account. ### What ZDR covers * **Claude Messages and Token Counting A… app-attest Claude Developer Platform · in the page manage-claude/app-attest …access token. The Claude for Foundation Models package runs this flow automatically and requests new tokens as they expire; there is no attestation code for you to write. Tokens are scoped to your wo… authentication Claude Developer Platform · in the page manage-claude/authentication …onal key acts as one person and breaks when they leave. For shared or automated workloads (CI, production services), have an organization admin create a service account so the workload has its own ide… cmek Claude Developer Platform · in the page manage-claude/cmek …details. Safety screening metadata (records derived from Anthropic's automated safety scans, such as pattern identifiers and match indicators, not conversation content) is retained under Anthropic-ma… Fetch the first page (newest activities first). Claude Developer Platform · in the page manage-claude/compliance-activity-feed …t represented by individual email) | | `system_actor` | Automated background processing performed by Anthropic systems, acting without a user or customer credential.… compliance-errors Claude Developer Platform · in the page manage-claude/compliance-errors …when the failure is deterministic. The Claude SDK honors this header automatically. If you use a generic HTTP retry library that retries on every 5xx, suppress retries when `x-should-retry` is `false… data-residency Claude Developer Platform · in the page manage-claude/data-residency …f global routing to keep inference in the US, your workspace has been automatically configured with `allowed_inference_geos: ["us"]` and `default_inference_geo: "us"`. No code changes are needed. Your… inference-hooks Claude Developer Platform · in the page manage-claude/inference-hooks …ur failure handling setting to every request, then resets the breaker automatically once it detects that your server is returning verdicts again; see [Circuit breaker](https://platform.claude.com/docs… inference-hooks-configuration Claude Developer Platform · in the page manage-claude/inference-hooks-configuration …esumes. Otherwise the breaker stays tripped and the checks continue. Automatic recovery runs only while your Inference hooks settings are unchanged since the trip. If you change any Inference hooks s… inference-hooks-endpoint Claude Developer Platform · in the page manage-claude/inference-hooks-endpoint …m.claude.com/docs/en/manage-claude/inference-hooks-configuration) and automatic circuit-breaker [recovery checks](https://platform.claude.com/docs/en/manage-claude/inference-hooks-endpoint#circuit-bre… sdk Claude Developer Platform · in the page manage-claude/opentelemetry/sdk …emetry/instrumentation-undici` , which `@opentelemetry/auto-instrumentations-node` includes. Otherwise, an [undici instrumentation bug](https://github.com/open-telemetry… organization-webhooks Claude Developer Platform · in the page manage-claude/organization-webhooks …en/manage-claude/organization-webhooks#before-your-first-event). * **Automatic disabling:** Anthropic disables an endpoint when: * It returns a redirect (`3xx`). * Its URL resolves to a non-publ… plugins-api Claude Developer Platform · in the page manage-claude/plugins-api …a.organization.plugins.list(owner_type="organization", limit=20) # Automatically fetches more pages as needed. for plugin in plugins: print(f"{plugin.id}: {plugin.name}") ``` ```typesc… rate-limits-api Claude Developer Platform · in the page manage-claude/rate-limits-api …ation:** Verify that workspace overrides match what your provisioning automation expects. <Check> **Admin API credentials required.** These endpoints are part of the Admin API. You can access them…
Feedback