Follow Discord
Sweep 10 Nov 2026 · 02:18Z Build v2.1.322 539 read Stable v2.1.311 Latest v2.1.322 Next v2.1.322 Feeds RSS JSON llms.txt llms-full.txt Unofficial
HomeDocsSearch
Search the documentation

350 pages for wrap.

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

api-credits-for-subscribers Claude Developer Platform · in the page about-claude/api-credits-for-subscribers …d as usual. When the balance is exhausted, requests return: ```text wrap Your credit balance is too low to access the Anthropic API. Please go to Plans & Billing to upgrade or purchase credits. ```… Or, for the model with the same capabilities and no access approval requirement: Claude Developer Platform · in the page about-claude/models/migration-guide …claude-model). It works for any target model on this page: ```text wrap /claude-api migrate this project to claude-opus-5 ``` The skill applies the model ID swap and, as needed, breaking par… model-ids-and-versions Claude Developer Platform · in the page about-claude/models/model-ids-and-versions …the Claude 4.6 generation, model IDs use a dateless format: ```text wrap claude-{name}-{major}[-{minor}] ``` Major-version releases such as Claude Sonnet 5 and Claude Opus 5 omit the minor segment.… optimizing-for-cost-and-intelligence Claude Developer Platform · in the page about-claude/models/optimizing-for-cost-and-intelligence …port-desk prompt and request code containing those patterns: ```text wrap $ claude > /claude-api prompt-audit 10 findings. The three that matter most: 1. budget_tokens returns a 400 on Opus 5 (supp… content-moderation Claude Developer Platform · in the page about-claude/use-case-guides/content-moderation …unsafe_categories) # Format messages string, with each message wrapped in XML-like tags and given an ID messages_str = "\n".join( [f"<message id={idx}>{msg}</message>" for idx,… customer-support-chat Claude Developer Platform · in the page about-claude/use-case-guides/customer-support-chat …tion answering to information retrieval to taking action on requests, wrapped up in a single customer interaction. Before you start building, break down your ideal customer interaction into every task… ticket-routing Claude Developer Platform · in the page about-claude/use-case-guides/ticket-routing …he deployment structure. Start by defining the function signature for wrapping the call to Claude. Extend the function you started writing earlier, which takes `ticket_contents` (typescript, csharp, g… claude-api-skill Claude Developer Platform · in the page agents-and-tools/agent-skills/claude-api-skill …arketplace ``` <Accordion title="Manual install commands"> ```text wrap /plugin marketplace add anthropics/skills /plugin install claude-api@anthropic-agent-skills ``` </Accordion> ## Migrat… mcp-connector Claude Developer Platform · in the page agents-and-tools/mcp-connector …ontent union; message // content is a separate union type, so re-wrap the shared variants // (mcp.ToMessage does the same internally). anthropic.BetaContentBlockParamUnion{ OfText… advisor-tool Claude Developer Platform · in the page agents-and-tools/tool-use/advisor-tool …other sentences that mention the advisor. Timing guidance: ```text wrap You have access to an `advisor` tool backed by a stronger reviewer model. It takes NO parameters — when you call advisor(), y… bash-tool Claude Developer Platform · in the page agents-and-tools/tool-use/bash-tool …l commands"> Keep an audit trail. Route every command through one wrapper that records the command before it runs and the output after it completes. A command that hangs or breaks the session stil… browser-use-sdk Claude Developer Platform · in the page agents-and-tools/tool-use/browser-use-sdk …state report that every driver needs. `backend` stands for your own wrapper around a browser automation library, such as Playwright. The URL policy is an example. [Write a URL policy](https://platfo… browser-use-tool Claude Developer Platform · in the page agents-and-tools/tool-use/browser-use-tool …AADUlEQVR42mNkYPhfDwAChwGA60e6kgAAAABJRU5ErkJggg==" // textContent wraps text as tool_result content. func textContent(text string) []anthropic.ToolResultBlockParamContentUnion { return []anth… build-a-tool-using-agent Claude Developer Platform · in the page agents-and-tools/tool-use/build-a-tool-using-agent …== :text end ``` </CodeGroup> **What to expect** ```text Output wrap stop_reason: tool_use Tool: create_calendar_event Input: {'title': 'Sync', 'start': '2026-03-30T10:00:00', 'end': '2026-03-30… code-execution-tool Claude Developer Platform · in the page agents-and-tools/tool-use/code-execution-tool …ructions to your system prompt that clarify the distinction: ```text wrap When multiple code execution environments are available, be aware that: - Variables, files, and state do NOT persist between… computer-use-tool Claude Developer Platform · in the page agents-and-tools/tool-use/computer-use-tool …}, }, }, }} } // textContent wraps text as tool_result content. func textContent(text string) []anthropic.ToolResultBlockParamContentUnion { retur… define-tools Claude Developer Platform · in the page agents-and-tools/tool-use/define-tools …vide the necessary context for the tool to operate properly: ```text wrap In this environment you have access to a set of tools you can use to answer the user's question. {{ FORMATTING INSTRUCTIONS }… fine-grained-tool-streaming Claude Developer Platform · in the page agents-and-tools/tool-use/fine-grained-tool-streaming …nto the full tool input, so the poem arrives piece by piece: ```text wrap {"filename": "poem.txt", "lines_of_text": ["The Wanderer's Journey", "", "I.", "", "Beneath the vast and star-strewn sky,", "… memory-tool Claude Developer Platform · in the page agents-and-tools/tool-use/memory-tool …A typical interaction looks like this: **1. User request:** ```text wrap "Help me respond to this customer service ticket." ``` **2. Claude checks the memory directory:** ```text wrap "I'll help y… overview Claude Developer Platform · in the page agents-and-tools/tool-use/overview …== :text } puts final_text.text ``` </CodeGroup> ```text Output wrap Claude called get_weather with {"location": "San Francisco, CA"} The current weather in San Francisco is 15 degrees Celsius w… parallel-tool-use Claude Developer Platform · in the page agents-and-tools/tool-use/parallel-tool-use …aude 4 and later models, add this to your system prompt: ```text wrap For maximum efficiency, whenever you need to perform multiple independent operations, invoke all relevant tools simultane… server-tools Claude Developer Platform · in the page agents-and-tools/tool-use/server-tools …and the request fails with a 400 `invalid_request_error`: ```text wrap `web_fetch` tool use with id `srvtoolu_01HxbWnMRmbWyMfUtJKC45rA` was found without a corresponding `web_fetch_tool_result`… Log at info level Claude Developer Platform · in the page agents-and-tools/tool-use/tool-runner …cription: Use the SDK's tool runner to handle the agentic loop, error wrapping, and type safety automatically. featureMetadata: status: beta supportedModels: - claude-fable-5-2 - claude-my… Beta Claude Developer Platform · in the page api/beta …nd the mode-less object are equivalent (both select `strict`), so wrapping an existing token changes nothing by itself. - `token: string` The opaque `fallback_credit_token` from a… Messages Claude Developer Platform · in the page api/beta/messages …nd the mode-less object are equivalent (both select `strict`), so wrapping an existing token changes nothing by itself. - `token: string` The opaque `fallback_credit_token` from a… Batches Claude Developer Platform · in the page api/beta/messages/batches …he mode-less object are equivalent (both select `strict`), so wrapping an existing token changes nothing by itself. - `token: string` The opaque `fallback_credit_to… Create a Message Batch Claude Developer Platform · in the page api/beta/messages/batches/create …he mode-less object are equivalent (both select `strict`), so wrapping an existing token changes nothing by itself. - `token: string` The opaque `fallback_credit_to… Create a Message Claude Developer Platform · in the page api/beta/messages/create …nd the mode-less object are equivalent (both select `strict`), so wrapping an existing token changes nothing by itself. - `token: string` The opaque `fallback_credit_token` from a… Plugin Marketplaces Claude Developer Platform · in the page api/beta/organization/plugin_marketplaces …A .zip of the marketplace directory (its contents at the root, or wrapped in one folder as a Git host's download produces), sent as a file part with a filename; DEFLATE- or STORE-compressed, at mo… Validate Plugin Marketplace Archive Claude Developer Platform · in the page api/beta/organization/plugin_marketplaces/validate_archive …A .zip of the marketplace directory (its contents at the root, or wrapped in one folder as a Git host's download produces), sent as a file part with a filename; DEFLATE- or STORE-compressed, at mo… claude-platform-on-aws-iam-actions Claude Developer Platform · in the page api/claude-platform-on-aws-iam-actions …es** | `workspace` | Workspace ARN format: ```text wrap arn:aws:aws-external-anthropic:{region}:{account-id}:workspace/{workspace-id} ``` The ARN region is always populated and mat… errors Claude Developer Platform · in the page api/errors …ng block (for example, `messages.1.content.0`) and contains: ```text wrap `thinking` or `redacted_thinking` blocks in the latest assistant message cannot be modified. These blocks must remain as they… ip-addresses Claude Developer Platform · in the page api/ip-addresses …isted these addresses, remove them from your firewall rules. ```text wrap 34.162.46.92/32 34.162.102.82/32 34.162.136.91/32 34.162.142.92/32 34.162.183.95/32 ``` Before Claude Developer Platform · in the page api/migration-2026-10-21 …a test stub. The Claude API accepts a key in either header. ```text wrap # Before X-Api-Key: <key> # After Authorization: Bearer <key> ``` <Tabs> <Tab title="CLI"> This applies to a key in `… rate-limits Claude Developer Platform · in the page api/rate-limits …t tokens in your request. To calculate total input tokens: ```text wrap total_input_tokens = cache_read_input_tokens + cache_creation_input_tokens + input_tokens ``` This means when you have… service-tiers Claude Developer Platform · in the page api/service-tiers …ty Tier commitment, these response headers provide insights: ```text wrap anthropic-priority-input-tokens-limit: 10000 anthropic-priority-input-tokens-remaining: 9618 anthropic-priority-input-tokens-… citations Claude Developer Platform · in the page build-with-claude/citations …p of this page. Send it in place of that example’s question: ```text wrap Extract these fields from the document: grass_color, sky_color. Answer with one line per field in the form "field: value", an… anthropic-managed Claude Developer Platform · in the page build-with-claude/claude-models-on-google-cloud/anthropic-managed …URL that names your project, a location, and your workspace: ```text wrap https://claude.googleapis.com/v1/projects/{project}/locations/global/workspaces/{workspace}/invoke ``` The [organization-lev… claude-on-amazon-bedrock-legacy Claude Developer Platform · in the page build-with-claude/claude-on-amazon-bedrock-legacy …se model ID fails with an HTTP 400 error like the following: ```text wrap Invocation of model ID anthropic.claude-sonnet-4-5-20250929-v1:0 with on-demand throughput isn't supported. Retry your reques… claude-platform-on-aws Claude Developer Platform · in the page build-with-claude/claude-platform-on-aws …cumentation. The endpoint service name follows this format: ```text wrap com.amazonaws.{region}.aws-external-anthropic ``` For example: ```text wrap com.amazonaws.us-east-2.aws-external-anthropic… sent_count = len(messages sent in the compaction request) Claude Developer Platform · in the page build-with-claude/compaction …t window. For example, some models use the following prompt: ```text wrap You have written a partial transcript for the initial task above. Please write a summary of the transcript. The purpose of th… compaction-thinking-blocks Claude Developer Platform · in the page build-with-claude/compaction-thinking-blocks …ird.input_transformations.length}" ``` </CodeGroup> ```text Output wrap Thinking blocks in the kept turn: 1 Dropped thinking blocks: 0 ``` In production, `"drop_block"` keeps requests succeeding w… compaction-threshold Claude Developer Platform · in the page build-with-claude/compaction-threshold …ext window. For example, this is one of the default prompts: ```text wrap You have written a partial transcript for the initial task above. Please write a summary of the transcript. The purpose of th… context-editing Claude Developer Platform · in the page build-with-claude/context-editing …is injected as a user turn, and Claude generates a structured summary wrapped in `<summary></summary>` tags. 3. **Context replacement:** The SDK extracts the summary and replaces the entire message hi… This will automatically use the environment variable VOYAGE_API_KEY. Claude Developer Platform · in the page build-with-claude/embeddings …th document, which is indeed the most relevant to the query: ```text wrap Apple's conference call to discuss fourth fiscal quarter results and business updates is scheduled for Thursday, November 2,… extended-thinking Claude Developer Platform · in the page build-with-claude/extended-thinking …,000 to 8,000 tokens shows the invalidation directly: ```text Output wrap First request - establishing cache First response usage: { cache_creation_input_tokens: 1370, cache_read_input_tokens: 0, inp… handling-stop-reasons Claude Developer Platform · in the page build-with-claude/handling-stop-reasons …nvalid_request_error` that names the unresolved server tool: ```text wrap `web_search` tool use with id `srvtoolu_01HxbWnMRmbWyMfUtJKC45rA` was found without a corresponding `web_search_tool_result`… mid-conversation-system-messages Claude Developer Platform · in the page build-with-claude/mid-conversation-system-messages …n’t need to send `mid-conversation-tool-changes-2026-07-01` as well. Wrap the definition in a `tool` object of type `tool_definition`. The `definition` is a `tools` entry, such as a custom tool or an… preserved-thinking Claude Developer Platform · in the page build-with-claude/preserved-thinking …_mismatch_allowed`. #### The 400 error The message starts: ```text wrap messages.1.content.0: Invalid `signature` in `thinking` block. The block is bound to a different conversation. Remove the blo… Request 2 caches its request content (not the response) Claude Developer Platform · in the page build-with-claude/prompt-caching …input tokens you sent. To calculate total input tokens: ```text wrap total_input_tokens = cache_read_input_tokens + cache_creation_input_tokens + input_tokens ``` **Spatial explanation:**…
Feedback