Search the documentation
50 pages for declare.
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.
optimizing-for-cost-and-intelligence
Claude Developer Platform · in the page
about-claude/models/optimizing-for-cost-and-intelligence
…put tokens, upper quartile 91.7%. Use-case labels (the organization's declared use case, or otherwise its classified one) cover 74% of those organization-days and 99% of their tokens; coding organizat…
browser-use-tool
Claude Developer Platform · in the page
agents-and-tools/tool-use/browser-use-tool
…or block in response.content: # Only the browser toolset is declared; route other tools here if you add them if block.type != "tool_use" or block.toolset_name != "browser":…
computer-use-tool
Claude Developer Platform · in the page
agents-and-tools/tool-use/computer-use-tool
…lset_20260801"}`. The request needs no beta header. This example also declares the [text editor tool](https://platform.claude.com/docs/en/agents-and-tools/tool-use/text-editor-tool) and [bash tool](ht…
define-tools
Claude Developer Platform · in the page
agents-and-tools/tool-use/define-tools
…opic-schema client tools, such as the bash and text editor tools, are declared by a date-versioned `type`; see each tool's page, linked from the [Tool reference](https://platform.claude.com/docs/en/ag…
Process results programmatically
Claude Developer Platform · in the page
agents-and-tools/tool-use/programmatic-tool-calling
…as `code_execution_20260120` regardless of which version the request declared. <Tip> Choose either `["direct"]` or `["code_execution_20260120"]` for each tool rather than enabling both, as this pr…
tool-reference
Claude Developer Platform · in the page
agents-and-tools/tool-use/tool-reference
…use-tool) are Anthropic-defined client toolsets: one entry in `tools` declares a fixed set of member tools whose names, descriptions, and input schemas Anthropic defines, and your application executes…
Beta
Claude Developer Platform · in the page
api/beta
…dditionBlock object` Mid-conversation directive to surface a declared tool. `tool` references a tool (or MCP toolset) by name from the request's `tools`; it is offered to the…
Messages
Claude Developer Platform · in the page
api/beta/messages
…dditionBlock object` Mid-conversation directive to surface a declared tool. `tool` references a tool (or MCP toolset) by name from the request's `tools`; it is offered to the…
Batches
Claude Developer Platform · in the page
api/beta/messages/batches
…ionBlock object` Mid-conversation directive to surface a declared tool. `tool` references a tool (or MCP toolset) by name from the request's `tools`; it is offere…
Create a Message Batch
Claude Developer Platform · in the page
api/beta/messages/batches/create
…ionBlock object` Mid-conversation directive to surface a declared tool. `tool` references a tool (or MCP toolset) by name from the request's `tools`; it is offere…
Count tokens in a Message
Claude Developer Platform · in the page
api/beta/messages/count_tokens
…dditionBlock object` Mid-conversation directive to surface a declared tool. `tool` references a tool (or MCP toolset) by name from the request's `tools`; it is offered to the…
Create a Message
Claude Developer Platform · in the page
api/beta/messages/create
…dditionBlock object` Mid-conversation directive to surface a declared tool. `tool` references a tool (or MCP toolset) by name from the request's `tools`; it is offered to the…
errors
Claude Developer Platform · in the page
api/errors
…Anthropic-defined tool type that the requested model doesn't support. Declare `{"type": "computer_toolset_20260801"}` without the beta header and update your agent loop as described in [Migrate from `…
Messages
Claude Developer Platform · in the page
api/messages
…owser toolset: a single `tools[]` entry (carrying no `name`) that declares the browser tool family. The model is served the family's tool with any members disabled via `configs` removed fr…
Batches
Claude Developer Platform · in the page
api/messages/batches
…r toolset: a single `tools[]` entry (carrying no `name`) that declares the browser tool family. The model is served the family's tool with any members disabled via `configs` removed…
Create a Message Batch
Claude Developer Platform · in the page
api/messages/batches/create
…r toolset: a single `tools[]` entry (carrying no `name`) that declares the browser tool family. The model is served the family's tool with any members disabled via `configs` removed…
Count tokens in a Message
Claude Developer Platform · in the page
api/messages/count_tokens
…owser toolset: a single `tools[]` entry (carrying no `name`) that declares the browser tool family. The model is served the family's tool with any members disabled via `configs` removed fr…
Create a Message
Claude Developer Platform · in the page
api/messages/create
…owser toolset: a single `tools[]` entry (carrying no `name`) that declares the browser tool family. The model is served the family's tool with any members disabled via `configs` removed fr…
sent_count = len(messages sent in the compaction request)
Claude Developer Platform · in the page
build-with-claude/compaction
…stem"` messages inside the summarized range are summarized. What they declared stops applying once the block replaces them. If an instruction or a [tool change](https://platform.claude.com/docs/en/bui…
mid-conversation-system-messages
Claude Developer Platform · in the page
build-with-claude/mid-conversation-system-messages
…ation, you change which tools are offered to the model between turns: declare the full tool set in `tools` up front, then use `tool_addition` and `tool_removal` blocks to offer a tool to the model, or…
preserved-thinking
Claude Developer Platform · in the page
build-with-claude/preserved-thinking
…drock, and Google Cloud. You have two ways to use these blocks: * **Declare every tool up front.** Put every tool the session might need in `tools` on the first request, with `defer_loading: true` o…
structured-outputs
Claude Developer Platform · in the page
build-with-claude/structured-outputs
…es `json-schema-to-ts` directly. For **inline schema literals** (declared with `as const` in your source), you also get compile-time type inference: `parsed_output` is typed to match the schema s…
apply
Claude Developer Platform · in the page
cli-sdks-libraries/cli/apply
…platform.claude.com/docs/en/cli-sdks-libraries/cli/apply description: Declare agents, environments, skills, memory stores, and deployments as files in your repository and keep the API's resources in s…
apple-foundation-models
Claude Developer Platform · in the page
cli-sdks-libraries/libraries/apple-foundation-models
…ls/overview) to compare models. ### Capabilities Each `ClaudeModel` declares what it accepts: sampling parameters, effort levels, adaptive thinking, structured output, and image input. The package u…
java
Claude Developer Platform · in the page
cli-sdks-libraries/sdks/java
…name, and the class's fields define the tool's parameters. <Note> Declare your tool classes as top-level classes or `static` nested classes. This requirement comes from the Jackson Databind librar…
WARNING: This operation PERMANENTLY deletes the chat, all of its messages,
Claude Developer Platform · in the page
manage-claude/compliance-content-data
…dentify a file's format from the returned bytes, not from its name or declared type. The response carries these headers: * `Content-Disposition: attachment; filename*=utf-8''<percent-encoded filenam…
Replace NODE_UID with the node's UID:
Claude Developer Platform · in the page
manage-claude/wif-providers/spiffe
…ller-manager](https://github.com/spiffe/spire-controller-manager) can declare entries with the `ClusterSPIFFEID` custom resource instead of calling `spire-server entry create` directly. ### Run spiff…
events-and-streaming
Claude Developer Platform · in the page
managed-agents/events-and-streaming
…Stream is open and buffering. List history before tailing live. declare -A seen_event_ids while IFS= read -r event_id; do seen_event_ids[$event_id]=1 done < <( curl -…
github
Claude Developer Platform · in the page
managed-agents/github
…er. ## GitHub MCP and session resources First, create an agent that declares the GitHub MCP server. The agent definition holds the server URL but no authentication token: <CodeGroup defaultLanguage…
mcp-connector
Claude Developer Platform · in the page
managed-agents/mcp-connector
…MCP configuration is split across two steps: 1. **Agent creation** declares which MCP servers the agent connects to, by name and URL. 2. **Session creation** supplies authentication for those serve…
migration
Claude Developer Platform · in the page
managed-agents/migration
…* Same fields, now on the agent definition. * **Custom tools:** Still declared with JSON Schema. Execution moves from inline handling to responding to `agent.custom_tool_use` events. See [Session even…
multiagent-orchestration
Claude Developer Platform · in the page
managed-agents/multiagent-orchestration
…m.claude.com/docs/en/managed-agents/agent-setup), set `multiagent` to declare the roster of agents the coordinator can delegate to: <CodeGroup defaultLanguage="CLI"> ```bash cURL coordinator=$(cu…
spawn.sh: called once per claimed work item
Claude Developer Platform · in the page
managed-agents/self-hosted-sandboxes
…o) in place of `ant beta:worker run`. </Note> <Steps> <Step title="Declare the tool on the agent"> Add a `custom` entry to the agent's `tools` whose `name` matches the tool your worker register…
vaults
Claude Developer Platform · in the page
managed-agents/vaults
…ault credentials apply to every thread. An agent whose own definition declares the matching MCP server authenticates with these credentials. See [Connect agents to MCP servers](https://platform.claude…
Or, for the Project Glasswing model with the same capabilities:
Claude Developer Platform · in the page
models/fable-5-1/migration-guide
…4.") or `tool_addition` and `tool_removal` blocks. A tool that wasn't declared in `tools` at the start can be [defined inside the `tool_addition` block](https://platform.claude.com/docs/en/build-with-…
Escalate hard decisions with the advisor tool
Claude Code CLI · in the page
advisor
…eps recurring, and tasks you want independently checked before Claude declares them done. It adds less value on short tasks where there is little to plan, or on work where every turn needs the strong…
Hosting the Agent SDK
Claude Code CLI · in the page
agent-sdk/hosting
…query, type SessionStore } from "@anthropic-ai/claude-agent-sdk"; declare const userInput: string; declare const sessionId: string; // looked up from your database by user declare con…
Connect to external tools with MCP
Claude Code CLI · in the page
agent-sdk/mcp
…cepted as an alias for `"http"`. The SDKs' `McpHttpServerConfig` type declares only `"http"`, so use `"http"` for servers you pass in code. ### SDK MCP servers Define custom tools directly in your a…
Agent SDK reference - Python
Claude Code CLI · in the page
agent-sdk/python
…t until a turn runs on a Claude Code version that records it, and not declared on the TypedDict, so read it with `.get()`. Requires Python Agent SDK 0.2.150 or later, whose bundled CLI records it. | |…
Get structured output from agents
Claude Code CLI · in the page
agent-sdk/structured-outputs
…The SDK validates schemas with JSON Schema draft-07, so schemas that declare a newer version are rejected. Zod targets draft 2020-12 by default, so pass `target: "draft-7"` when converting your schem…
Agent SDK reference - TypeScript
Claude Code CLI · in the page
agent-sdk/typescript
…workflows#let-claude-decide-with-ultracode) on. `applyFlagSettings()` declares `effortLevel` without that value, so pass the equivalent `{ ultracode: true }` in TypeScript. The `ultracode` value requi…
Share session output as artifacts
Claude Code CLI · in the page
artifacts
…thout asking, and asks again in some cases, including when: * Claude declares a runtime capability for the page, such as [connector calls](#pull-live-data-with-mcp-connectors) or [file downloads](#of…
Claude Code changelog
Claude Code CLI · in the page
changelog
…a missing favicon * Improved the Artifact tool's error when a page declares a capability its contract version lacks: it now lists every supported capability and notes when a newer contract version…
Push events into a running session with channels
Claude Code CLI · in the page
channels
…terminal, the session pauses until you respond. Channel servers that declare the [permission relay capability](/docs/en/channels-reference#relay-permission-prompts) can forward these prompts to you s…
Channels reference
Claude Code CLI · in the page
channels-reference
…use Bun, but your channel doesn't have to. Your server needs to: 1. Declare the `claude/channel` capability so Claude Code registers a notification listener 2. Emit `notifications/claude/channel` ev…
Claude apps gateway for Amazon Bedrock, Claude Platform on AWS, Google Cloud, and Microsoft Foundry
Claude Code CLI · in the page
claude-apps-gateway
…pback. For a gateway you host, any public address outside a block you declare is rejected; see the [threat model](/docs/en/claude-apps-gateway-deploy#threat-model-summary) in the deployment guide. If…
Claude apps gateway deployment and operations
Claude Code CLI · in the page
claude-apps-gateway-deploy
…address is public space your organization owns and uses internally, [declare that block](/docs/en/claude-apps-gateway#allow-a-gateway-on-public-address-space-you-own) instead.…
Let Claude coordinate ongoing work with Projects
Claude Code CLI · in the page
claude-projects
…Plugins**; they load into each new thread. Plugins that a repository declares in its `.claude/settings.json` [don't load in threads](/docs/en/cloud-environments#what-carries-over-from-your-setup), be…
Configure cloud environments
Claude Code CLI · in the page
cloud-environments
…| | Plugins and marketplaces declared in your repo's `.claude/settings.json`…
Desktop application
Claude Code CLI · in the page
desktop
…doesn't install plugins that the repository's `.claude/settings.json` declares, as [What carries over from your setup](/docs/en/cloud-environments#what-carries-over-from-your-setup) explains. To use a…