Follow Discord
Sweep 03 Dec 2026 · 19:13Z Build v2.1.336 553 read Stable v2.1.332 Latest v2.1.336 Next v2.1.336 Feeds RSS JSON llms.txt llms-full.txt Unofficial
HomeDocsSearch
Search the documentation

533 pages for pattern.

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

before_id is the first_id from a previous response Claude Developer Platform · path manage-claude/compliance-integration-patterns Cancellation Model Context Protocol · path specification/2026-07-28/basic/patterns/cancellation Overview Model Context Protocol · path specification/2026-07-28/basic/patterns/index Multi Round-Trip Requests Model Context Protocol · path specification/2026-07-28/basic/patterns/mrtr Progress Model Context Protocol · path specification/2026-07-28/basic/patterns/progress Subscriptions Model Context Protocol · path specification/2026-07-28/basic/patterns/subscriptions Cancellation Model Context Protocol · path specification/draft/basic/patterns/cancellation Overview Model Context Protocol · path specification/draft/basic/patterns/index Multi Round-Trip Requests Model Context Protocol · path specification/draft/basic/patterns/mrtr Progress Model Context Protocol · path specification/draft/basic/patterns/progress Subscriptions Model Context Protocol · path specification/draft/basic/patterns/subscriptions glossary Claude Developer Platform · in the page about-claude/glossary …l data. This causes the model to start representing and mimicking the patterns and characteristics of the fine-tuning dataset. Claude is not a bare language model; it has already been fine-tuned to be… choosing-a-model Claude Developer Platform · in the page about-claude/models/choosing-a-model …odel so that most tokens are billed at the lower rate. The two common patterns are an executor that escalates hard decisions to an advisor, and an orchestrator that delegates bulk work to lower-cost w… Or, for the model with the same capabilities and no access approval requirement: Claude Developer Platform · in the page about-claude/models/migration-guide …tps://platform.claude.com/docs/en/agents-and-tools/tool-use/overview) patterns as Claude Mythos Preview, and token counts are roughly unchanged because all three models use the same tokenizer. The key… optimizing-for-cost-and-intelligence Claude Developer Platform · in the page about-claude/models/optimizing-for-cost-and-intelligence …d the run cost about a twelfth as much. Claude Opus 5 showed the same pattern. Neither approach used prompt caching. #### Manage the context lifecycle The context levers only pay on a session long e… pricing Claude Developer Platform · in the page about-claude/pricing …** Use the Batch API for non-time-sensitive tasks. 4. **Monitor usage patterns:** Track token consumption to identify optimization opportunities. <Tip> For high-volume agent applications, contact t… content-moderation Claude Developer Platform · in the page about-claude/use-case-guides/content-moderation …Traditional ML approaches, such as bag-of-words models or simple pattern matching, often have difficulty capturing the tone, intent, and context of the content. Although human moderation systems… legal-summarization Claude Developer Platform · in the page about-claude/use-case-guides/legal-summarization …n be adapted for your use case, so that each summary follows the same pattern. ### Evaluate your prompt Prompting often requires testing and optimization for it to be production ready. To determine… ticket-routing Claude Developer Platform · in the page about-claude/use-case-guides/ticket-routing …Traditional ML approaches often rely on bag-of-words models or simple pattern matching. Claude excels at applying underlying rules when classes are defined by conditions rather than examples. </Acco… PDF Processing Claude Developer Platform · in the page agents-and-tools/agent-skills/best-practices …** (pseudocode or scripts with parameters): Use when: * A preferred pattern exists * Some variation is acceptable * Configuration affects behavior Example: ````markdown ## Generate report Use thi… claude-api-skill Claude Developer Platform · in the page agents-and-tools/agent-skills/claude-api-skill …guage-specific SDK documentation:** Installation, quick start, common patterns, and error handling for your project’s language * **Tool use guidance:** Language-specific examples and [conceptual found… enterprise Claude Developer Platform · in the page agents-and-tools/agent-skills/enterprise …e`) | High: extends access beyond the Skill itself | | Network access patterns | URLs, API endpoints, `fetch`, `curl`, or `requests` calls | High: potential data exfiltration vector | | Hardcoded cred… PDF Processing Claude Developer Platform · in the page agents-and-tools/agent-skills/overview …l: `SKILL.md`, scripts, images, and other resources. Look for unusual patterns such as unexpected network calls, file access patterns, or operations that don’t match the Skill’s stated purpose. * **Ex… quickstart Claude Developer Platform · in the page agents-and-tools/agent-skills/quickstart …1-skills-introduction"> Explore example Skills and implementation patterns. </Card> </CardGroup> mcp-connector Claude Developer Platform · in the page agents-and-tools/mcp-connector …defer_loading: true` (from `default_config`) ## Common configuration patterns ### Enable all tools with default configuration The simplest pattern: enable all tools from a server: ```json { "typ… security Claude Developer Platform · in the page agents-and-tools/mcp-tunnels/security …e. * **Monitor logs.** Alert on warnings, errors, and unusual traffic patterns from the tunnel stack. * **Rotate credentials.** Rotate the server certificate and tunnel token on a regular schedule, an… advisor-tool Claude Developer Platform · in the page agents-and-tools/tool-use/advisor-tool …or course correction, and the executor continues with the task. This pattern fits long-horizon agentic workloads (coding agents, computer use, multistep research pipelines) where most turns are mecha… bash-tool Claude Developer Platform · in the page agents-and-tools/tool-use/bash-tool …s/tool-use/overview#pricing) for complete pricing details. ## Common patterns ### Development workflows * Running tests: `pytest && coverage report` * Building projects: `npm install && npm run bui… computer-use-tool Claude Developer Platform · in the page agents-and-tools/tool-use/computer-use-tool …-and-tools/tool-use/computer-use-tool#quick-start) section shows this pattern with the [bash tool](https://platform.claude.com/docs/en/agents-and-tools/tool-use/bash-tool) and [text editor tool](https… define-tools Claude Developer Platform · in the page agents-and-tools/tool-use/define-tools …ded in the prompt alongside your tool schema, showing Claude concrete patterns for well-formed tool calls. These patterns indicate when to include optional parameters, what formats to use, and how to… fine-grained-tool-streaming Claude Developer Platform · in the page agents-and-tools/tool-use/fine-grained-tool-streaming …in the previous example do), it handles this for you. Use the manual pattern when your SDK has no helper or when you want full control over how the input is assembled. The accumulation contract: 1.… how-tool-use-works Claude Developer Platform · in the page agents-and-tools/tool-use/how-tool-use-works …/docs/en/agents-and-tools/tool-use/server-tools) for the continuation pattern. The loop also hands control back to you before a server tool runs if Claude calls that server tool and a client tool in… memory-tool Claude Developer Platform · in the page agents-and-tools/tool-use/memory-tool …ineering/effective-context-engineering-for-ai-agents) for the broader pattern. The memory tool operates client-side: Claude requests file operations, and your application runs them. You control where… parallel-tool-use Claude Developer Platform · in the page agents-and-tools/tool-use/parallel-tool-use …ts for you, so you don’t write this handling yourself. Use the manual pattern on this page when you need direct control over how the calls run, such as custom batching, ordering, or error handling. </… Process results programmatically Claude Developer Platform · in the page agents-and-tools/tool-use/programmatic-tool-calling …t $45,000." } ], "stop_reason": "end_turn" } ``` ## Advanced patterns ### Batch processing with loops Claude can write code that processes multiple items efficiently: ```python regions = [… server-tools Claude Developer Platform · in the page agents-and-tools/tool-use/server-tools …a 400 error. For the other `stop_reason` values and general handling patterns, see [Stop reasons and fallback](https://platform.claude.com/docs/en/build-with-claude/handling-stop-reasons). ## Mixing… strict-tool-use Claude Developer Platform · in the page agents-and-tools/tool-use/strict-tool-use …in `input_schema` property names, `enum` values, `const` values, or `pattern` regular expressions. PHI should only appear in message content (prompts and responses), where it is protected under HIPAA… text-editor-tool Claude Developer Platform · in the page agents-and-tools/tool-use/text-editor-tool …s.readString(Path.of(filePath)); int count = content.split(Pattern.quote(oldText), -1).length - 1; if (count == 0) { return "Error: No match found"; } else… tool-combinations Claude Developer Platform · in the page agents-and-tools/tool-use/tool-combinations …Anthropic-provided tools are designed to work together. Common agent patterns pair tools that cover complementary stages of a workflow: one tool gathers or discovers, another processes or acts. The f… Log at info level Claude Developer Platform · in the page agents-and-tools/tool-use/tool-runner …ign `runner.params[:messages]` or call `feed_messages`. The following pattern calls `feed_messages` between `next_message` calls, which does not take over. ```ruby runner = client.beta.messag… tool-search-tool Claude Developer Platform · in the page agents-and-tools/tool-use/tool-search-tool …*Regex** (`tool_search_tool_regex_20251119`): Claude constructs regex patterns to search for tools. * **BM25** (`tool_search_tool_bm25_20251119`): Claude uses natural language queries to search for to… troubleshooting-tool-use Claude Developer Platform · in the page agents-and-tools/tool-use/troubleshooting-tool-use …ver-tool-call-has-no-result-block). | | `Unsupported regex feature in pattern field: ...` | A strict tool’s `pattern` uses a regex feature that strict mode can’t compile, such as a backreference, a wo… web-fetch-tool Claude Developer Platform · in the page agents-and-tools/tool-use/web-fetch-tool …ay change over time to optimize for different content types and usage patterns. To fetch fresh content, set `"use_cache": false` (see [Cache bypass](https://platform.claude.com/docs/en/agents-and-tool… Beta Claude Developer Platform · in the page api/beta …an a number so no float rounding is ever applied. maxLength: 19, pattern: ^(0|[1-9]\d*)$ - `currency: BetaCurrency` Uppercase ISO-4217 currency code. `USD` is the only currency currently… beta-headers Claude Developer Platform · in the page api/beta-headers …# Version naming conventions Beta feature names typically follow the pattern `feature-name-YYYY-MM-DD`, where the date indicates when the beta was released. Always use the exact beta feature name as… Agents Claude Developer Platform · in the page api/beta/agents …le/my-agent-runner". Maximum 2048 characters. maxLength: 2048, pattern: ^arn:aws(-[a-z]+)*:iam::[0-9]{12}:role/[\w+=,.@/-]+$ - `BetaManagedAgentsServiceAccountExecutionIdentityParams object`… Archive Agent Claude Developer Platform · in the page api/beta/agents/archive …Two-letter ISO 3166-1 country code, uppercase. pattern: ^[A-Z]{2}$ - `region: optional string or null` Region or state name. minLength… Create Agent Claude Developer Platform · in the page api/beta/agents/create …le/my-agent-runner". Maximum 2048 characters. maxLength: 2048, pattern: ^arn:aws(-[a-z]+)*:iam::[0-9]{12}:role/[\w+=,.@/-]+$ - `BetaManagedAgentsServiceAccountExecutionIdentityParams object`… List Agents Claude Developer Platform · in the page api/beta/agents/list …Two-letter ISO 3166-1 country code, uppercase. pattern: ^[A-Z]{2}$ - `region: optional string or null` Region or state name. minLength… Get Agent Claude Developer Platform · in the page api/beta/agents/retrieve …Two-letter ISO 3166-1 country code, uppercase. pattern: ^[A-Z]{2}$ - `region: optional string or null` Region or state name. minLength…
Feedback