Search the documentation
50 pages for wait.
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
…ntent": "..."}], ) ``` ```typescript TypeScript await client.messages.create({ model: "claude-mythos-preview", max_tokens: 16000, thinking: { type: "enabled",…
optimizing-for-cost-and-intelligence
Claude Developer Platform · in the page
about-claude/models/optimizing-for-cost-and-intelligence
…s/en/build-with-claude/batch-processing) at 50% off for work that can wait up to 24 hours, and [workspace spend limits](https://platform.claude.com/docs/en/api/rate-limits#setting-lower-limits-for-wor…
pricing
Claude Developer Platform · in the page
about-claude/pricing
…rues only while the session's status is `running`. Time spent `idle` (waiting for your next message or a tool confirmation), `rescheduling`, or `terminated` does not count toward runtime. <Note> Se…
content-moderation
Claude Developer Platform · in the page
about-claude/use-case-guides/content-moderation
…nd the request to Claude for content moderation const response = await client.messages.create({ model: "claude-haiku-4-5-20251001", // Using the Haiku model for lower costs max_tokens:…
customer-support-chat
Claude Developer Platform · in the page
about-claude/use-case-guides/customer-support-chat
…role: "user", content: userInput }); const responseMessage = await this.generateMessage(this.messages, 2048); const lastBlock = responseMessage.content.at(-1); if (lastBlock?.type…
Create an instance of the Claude API client
Claude Developer Platform · in the page
about-claude/use-case-guides/ticket-routing
…Customers often express needs indirectly. For example, "I've been waiting for my package for over two weeks now" may be an indirect request for order status. * **Solution:** Provide Claude wi…
quickstart
Claude Developer Platform · in the page
agents-and-tools/agent-skills/quickstart
…cript TypeScript // List Anthropic-managed Skills const skills = await client.skills.list({ source: "anthropic" }); for (const skill of skills.data) { console.log(`${skill.id}: ${skill.disp…
mcp-connector
Claude Developer Platform · in the page
agents-and-tools/mcp-connector
…TypeScript const anthropic = new Anthropic(); const response = await anthropic.beta.messages.create({ model: "claude-opus-5", max_tokens: 1000, messages: [ { role: "use…
overview
Claude Developer Platform · in the page
agents-and-tools/mcp-tunnels/overview
…TypeScript const anthropic = new Anthropic(); const response = await anthropic.beta.messages.create({ model: "claude-opus-5", max_tokens: 1000, messages: [ { role: "use…
reference
Claude Developer Platform · in the page
agents-and-tools/mcp-tunnels/reference
…| | `shutdown_timeout` | How long to wait for in-flight requests during graceful shutdown.…
advisor-tool
Claude Developer Platform · in the page
agents-and-tools/tool-use/advisor-tool
…ipt TypeScript const client = new Anthropic(); const response = await client.beta.messages.create({ model: "claude-sonnet-5", max_tokens: 4096, betas: ["advisor-tool-2026-03-01"],…
bash-tool
Claude Developer Platform · in the page
agents-and-tools/tool-use/bash-tool
…ipt TypeScript const client = new Anthropic(); const response = await client.messages.create({ model: "claude-opus-5", max_tokens: 1024, tools: [{ type: "bash_20250124", name: "bash"…
browser-use-tool
Claude Developer Platform · in the page
agents-and-tools/tool-use/browser-use-tool
…ipt TypeScript const client = new Anthropic(); const response = await client.messages.create({ model: "claude-opus-5", max_tokens: 2048, tools: [{ type: "browser_toolset_20260801" }],…
build-a-tool-using-agent
Claude Developer Platform · in the page
agents-and-tools/tool-use/build-a-tool-using-agent
…ol based on the request and the tool description. const response = await client.messages.create({ model: "claude-opus-5", max_tokens: 1024, tools, tool_choice: { type: "auto", disabl…
code-execution-tool
Claude Developer Platform · in the page
agents-and-tools/tool-use/code-execution-tool
…ipt TypeScript const client = new Anthropic(); const response = await client.messages.create({ model: "claude-opus-5", max_tokens: 4096, messages: [ { role: "user",…
computer-use-tool
Claude Developer Platform · in the page
agents-and-tools/tool-use/computer-use-tool
…ipt TypeScript const client = new Anthropic(); const response = await client.messages.create({ model: "claude-opus-5", max_tokens: 1024, tools: [ { type: "computer_tools…
define-tools
Claude Developer Platform · in the page
agents-and-tools/tool-use/define-tools
…ipt TypeScript const client = new Anthropic(); const response = await client.messages.create({ model: "claude-opus-5", max_tokens: 1024, tools: [ { name: "get_weather",…
fine-grained-tool-streaming
Claude Developer Platform · in the page
agents-and-tools/tool-use/fine-grained-tool-streaming
…=> { process.stdout.write(partialJson); }); const message = await stream.finalMessage(); console.log(); for (const block of message.content) { if (block.type === "tool_use") { c…
memory-tool
Claude Developer Platform · in the page
agents-and-tools/tool-use/memory-tool
…t TypeScript const anthropic = new Anthropic(); const message = await anthropic.messages.create({ model: "claude-opus-5", max_tokens: 2048, messages: [ { role: "user",…
overview
Claude Developer Platform · in the page
agents-and-tools/tool-use/overview
…ript TypeScript const client = new Anthropic(); const response = await client.messages.create({ model: "claude-opus-5", max_tokens: 1024, tools: [{ type: "web_search_20260209", name: "…
parallel-tool-use
Claude Developer Platform · in the page
agents-and-tools/tool-use/parallel-tool-use
…console.log("Requesting parallel tool calls..."); const response = await client.messages.create({ model: "claude-opus-5", max_tokens: 1024, messages: [ { role: "user",…
Process results programmatically
Claude Developer Platform · in the page
agents-and-tools/tool-use/programmatic-tool-calling
…ipt TypeScript const client = new Anthropic(); const response = await client.messages.create({ model: "claude-opus-5", max_tokens: 4096, messages: [ { role: "user",…
server-tools
Claude Developer Platform · in the page
agents-and-tools/tool-use/server-tools
…nthropic(); // Initial request with web search const response = await client.messages.create({ model: "claude-opus-5", max_tokens: 1024, messages: [ { role: "user",…
strict-tool-use
Claude Developer Platform · in the page
agents-and-tools/tool-use/strict-tool-use
…apiKey: process.env.ANTHROPIC_API_KEY }); const response = await client.messages.create({ model: "claude-opus-5", max_tokens: 1024, messages: [ { role: "user",…
text-editor-tool
Claude Developer Platform · in the page
agents-and-tools/tool-use/text-editor-tool
…TypeScript const anthropic = new Anthropic(); const response = await anthropic.messages.create({ model: "claude-opus-5", max_tokens: 1024, tools: [ { type: "text_editor…
Log at info level
Claude Developer Platform · in the page
agents-and-tools/tool-use/tool-runner
…C", condition: "Sunny" }); } }); const finalMessage = await client.beta.messages.toolRunner({ model: "claude-opus-5", max_tokens: 1024, tools: [getWeatherTool],…
tool-search-tool
Claude Developer Platform · in the page
agents-and-tools/tool-use/tool-search-tool
…ipt TypeScript const client = new Anthropic(); const response = await client.messages.create({ model: "claude-opus-5", max_tokens: 2048, messages: [ { role: "user",…
web-fetch-tool
Claude Developer Platform · in the page
agents-and-tools/tool-use/web-fetch-tool
…ipt TypeScript const client = new Anthropic(); const response = await client.messages.create({ model: "claude-opus-4-8", max_tokens: 4096, messages: [ { role: "user",…
web-search-tool
Claude Developer Platform · in the page
agents-and-tools/tool-use/web-search-tool
…ipt TypeScript const client = new Anthropic(); const response = await client.messages.create({ model: "claude-opus-5", max_tokens: 4096, messages: [ { role: "user",…
Admin
Claude Developer Platform · in the page
api/admin
…forms an encrypt/decrypt roundtrip against the configured KMS key and waits up to 30 seconds for the result. The response status is `success` if the roundtrip succeeded, or `failure` with an error mes…
External Keys
Claude Developer Platform · in the page
api/admin/external_keys
…forms an encrypt/decrypt roundtrip against the configured KMS key and waits up to 30 seconds for the result. The response status is `success` if the roundtrip succeeded, or `failure` with an error mes…
Validate External Key
Claude Developer Platform · in the page
api/admin/external_keys/validate
…forms an encrypt/decrypt roundtrip against the configured KMS key and waits up to 30 seconds for the result. The response status is `success` if the roundtrip succeeded, or `failure` with an error mes…
Beta
Claude Developer Platform · in the page
api/beta
…enabled resolves false is withheld from the served schema. - `wait: optional BetaBrowserWaitConfig or null` `wait`'s config overrides. - `defer_loading: optional boolean or n…
beta-headers
Claude Developer Platform · in the page
api/beta-headers
…pescript TypeScript const client = new Anthropic(); const msg = await client.beta.messages.create({ model: "claude-opus-5", max_tokens: 1024, messages: [{ role: "user", content: "Hell…
Agents
Claude Developer Platform · in the page
api/beta/agents
…n `agent.custom_tool_use` event is emitted and the session goes idle, waiting for the client to provide the result via a `user.custom_tool_result` event. - `description: string` Descriptio…
Create Agent
Claude Developer Platform · in the page
api/beta/agents/create
…n `agent.custom_tool_use` event is emitted and the session goes idle, waiting for the client to provide the result via a `user.custom_tool_result` event. - `description: string` Descriptio…
Update Agent
Claude Developer Platform · in the page
api/beta/agents/update
…n `agent.custom_tool_use` event is emitted and the session goes idle, waiting for the client to provide the result via a `user.custom_tool_result` event. - `description: string` Descriptio…
Environments
Claude Developer Platform · in the page
api/beta/environments
…#### Query parameters - `block_ms: optional number` How long to wait for work to arrive before returning. Must be 1-999 in milliseconds. Defaults to non-blocking (returns immediately if no work…
Work
Claude Developer Platform · in the page
api/beta/environments/work
…` ### Query parameters - `block_ms: optional number` How long to wait for work to arrive before returning. Must be 1-999 in milliseconds. Defaults to non-blocking (returns immediately if no work…
Poll for Work
Claude Developer Platform · in the page
api/beta/environments/work/poll
…g` ## Query parameters - `block_ms: optional number` How long to wait for work to arrive before returning. Must be 1-999 in milliseconds. Defaults to non-blocking (returns immediately if no work…
Get Queue Statistics
Claude Developer Platform · in the page
api/beta/environments/work/stats
…rics for O(1) queries. - `depth: number` Number of work items waiting to be picked up (lag from consumer group) - `oldest_queued_at: string or null` RFC 3339 timestamp of oldest item i…
Messages
Claude Developer Platform · in the page
api/beta/messages
…enabled resolves false is withheld from the served schema. - `wait: optional BetaBrowserWaitConfig or null` `wait`'s config overrides. - `defer_loading: optional boolean or n…
Batches
Claude Developer Platform · in the page
api/beta/messages/batches
…bled resolves false is withheld from the served schema. - `wait: optional BetaBrowserWaitConfig or null` `wait`'s config overrides. - `defer_loading: optional bool…
Create a Message Batch
Claude Developer Platform · in the page
api/beta/messages/batches/create
…bled resolves false is withheld from the served schema. - `wait: optional BetaBrowserWaitConfig or null` `wait`'s config overrides. - `defer_loading: optional bool…
Count tokens in a Message
Claude Developer Platform · in the page
api/beta/messages/count_tokens
…enabled resolves false is withheld from the served schema. - `wait: optional BetaBrowserWaitConfig or null` `wait`'s config overrides. - `defer_loading: optional boolean or n…
Create a Message
Claude Developer Platform · in the page
api/beta/messages/create
…enabled resolves false is withheld from the served schema. - `wait: optional BetaBrowserWaitConfig or null` `wait`'s config overrides. - `defer_loading: optional boolean or n…
Organization
Claude Developer Platform · in the page
api/beta/organization
…forms an encrypt/decrypt roundtrip against the configured KMS key and waits up to 30 seconds for the result. The response status is `success` if the roundtrip succeeded, or `failure` with an error mes…
External Keys
Claude Developer Platform · in the page
api/beta/organization/external_keys
…forms an encrypt/decrypt roundtrip against the configured KMS key and waits up to 30 seconds for the result. The response status is `success` if the roundtrip succeeded, or `failure` with an error mes…
Validate External Key
Claude Developer Platform · in the page
api/beta/organization/external_keys/validate
…forms an encrypt/decrypt roundtrip against the configured KMS key and waits up to 30 seconds for the result. The response status is `success` if the roundtrip succeeded, or `failure` with an error mes…
Sessions
Claude Developer Platform · in the page
api/beta/sessions
…n `agent.custom_tool_use` event is emitted and the session goes idle, waiting for the client to provide the result via a `user.custom_tool_result` event. - `description: string` De…