Follow Discord
Sweep 22 Sep 2026 · 17:19Z Build v2.1.280 501 read Stable v2.1.267 Latest v2.1.280 Next v2.1.280 Feeds RSS JSON llms.txt Unofficial
Search the documentation

50 pages for wrap.

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.

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 …l adding it to the harness that produced these measurements: ```text wrap $ claude > /claude-api add prompt caching to this integration Done. Prompt caching is now wired into the harness. Two change… 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… Create an instance of the Claude API client Claude Developer Platform · in the page about-claude/use-case-guides/ticket-routing …the deployment structure. Start by defining the method signature for wrapping the call to Claude. Extend the method you began writing earlier, which takes `ticket_contents` as input, so that it now r… claude-api-skill Claude Developer Platform · in the page agents-and-tools/agent-skills/claude-api-skill …l activates automatically. You can also invoke it directly: ```text wrap /claude-api ``` For more about how bundled skills work in Claude Code, see the [Claude Code skills documentation](https://co… 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 finishes. A command that hangs or breaks the session still… 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 …ool input, the poem fills your terminal as Claude writes it: ```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. --- The tool runner handles the agentic loop, error wrapping, and type safety so you don… 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… 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 …addresses, you should 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 ``` 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-… 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 …prefixed ID you pass in the `anthropic-workspace-id` header: ```text wrap arn:aws:aws-external-anthropic:{region}:{account-id}:workspace/{workspace-id} ``` For example: ```text wrap arn:aws:aws-ext… 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 …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… 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 …ols) shows the request in each SDK. The 400 message begins: ```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:**… claude-prompting-best-practices Claude Developer Platform · in the page build-with-claude/prompt-engineering/claude-prompting-best-practices …an analytics dashboard" defaultOpen> **Less effective:** ```text wrap Create an analytics dashboard ``` **More effective:** ```text wrap Create an analytics dashboard. Include as many… prompting-claude-fable-5 Claude Developer Platform · in the page build-with-claude/prompt-engineering/prompting-claude-fable-5 …p Claude Fable 5 from overplanning when a task is ambiguous: ```text wrap When you have enough information to act, act. Do not re-derive facts already established in the conversation, re-litigate a d… Delivering work Claude Developer Platform · in the page build-with-claude/prompt-engineering/prompting-claude-fable-5-1 …ing text from the model and what each update should contain: ```text wrap Before you start, say in a line what you're about to do; brief updates while you work help the user follow along. Close with… prompting-claude-opus-4-8 Claude Developer Platform · in the page build-with-claude/prompt-engineering/prompting-claude-opus-4-8 …rompts. As an example, to decrease verbosity, you might add: ```text wrap Provide concise, focused responses. Skip non-essential context, and keep examples minimal. ``` If you see specific examples… prompting-claude-opus-5 Claude Developer Platform · in the page build-with-claude/prompt-engineering/prompting-claude-opus-5 …ffective. For example, for a user-facing multi-turn product: ```text wrap Keep responses focused, brief, and concise. Keep disclaimers and caveats short, and spend most of the response on the main an… prompting-claude-sonnet-5 Claude Developer Platform · in the page build-with-claude/prompt-engineering/prompting-claude-sonnet-5 …rompts. As an example, to decrease verbosity, you might add: ```text wrap Provide concise, focused responses. Skip non-essential context, and keep examples minimal. ``` If you see specific kinds of… refusals-and-fallback Claude Developer Platform · in the page build-with-claude/refusals-and-fallback …laude.com/docs/en/cli-sdks-libraries/middleware): the SDK helper that wraps all of this. * [Fallback and billing cookbook](https://platform.claude.com/cookbook/fable-5-fallback-billing-guide): a worke…
Feedback