Search the documentation
50 pages for websearch.
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.
advisor-tool
Claude Developer Platform · in the page
agents-and-tools/tool-use/advisor-tool
…Models.Messages; var tools = new BetaToolUnion[] { new BetaWebSearchTool20250305 { MaxUses = 5 }, new BetaAdvisorTool20260301 { Model = Messages::Model.ClaudeOpus5 }, new BetaTo…
overview
Claude Developer Platform · in the page
agents-and-tools/tool-use/overview
…ClaudeOpus5, MaxTokens = 1024, Tools = [new ToolUnion(new WebSearchTool20260209())], Messages = [new() { Role = Role.User, Content = "What's the latest on the Mars rover?" }] };…
server-tools
Claude Developer Platform · in the page
agents-and-tools/tool-use/server-tools
…roughs in 2025" } ], Tools = [new ToolUnion(new WebSearchTool20250305 { MaxUses = 10 })] }; var response = await client.Messages.Create(parameters); if (response.StopReas…
web-fetch-tool
Claude Developer Platform · in the page
agents-and-tools/tool-use/web-fetch-tool
…levant one in detail" }], Tools = [ new ToolUnion(new WebSearchTool20250305() { MaxUses = 3 }), new ToolUnion(new WebFetchTool20250910() { MaxUses = 5, Citations = new() { En…
web-search-tool
Claude Developer Platform · in the page
agents-and-tools/tool-use/web-search-tool
…e which has a better P/E ratio." }], Tools = [new ToolUnion(new WebSearchTool20260318())] }; var message = await client.Messages.Create(parameters); Console.WriteLine(message); ``` `…
Beta
Claude Developer Platform · in the page
api/beta
…- `type: "content_block_location"` - `BetaCitationWebSearchResultLocationParam object` - `cited_text: string` - `encrypted_index: string` - `…
Agents
Claude Developer Platform · in the page
api/beta/agents
…n. - `type: optional "web_fetch"` - `BetaManagedAgentsWebSearchToolConfigParams object` Configuration override for the web_search tool. - `name: "web_search"`…
Archive Agent
Claude Developer Platform · in the page
api/beta/agents/archive
…mber or null` format: int32 - `BetaManagedAgentsWebSearchToolConfig object` Configuration for the web_search tool. - `enabled: boolean` - `name:…
Create Agent
Claude Developer Platform · in the page
api/beta/agents/create
…n. - `type: optional "web_fetch"` - `BetaManagedAgentsWebSearchToolConfigParams object` Configuration override for the web_search tool. - `name: "web_search"`…
List Agents
Claude Developer Platform · in the page
api/beta/agents/list
…mber or null` format: int32 - `BetaManagedAgentsWebSearchToolConfig object` Configuration for the web_search tool. - `enabled: boolean` - `name:…
Get Agent
Claude Developer Platform · in the page
api/beta/agents/retrieve
…mber or null` format: int32 - `BetaManagedAgentsWebSearchToolConfig object` Configuration for the web_search tool. - `enabled: boolean` - `name:…
Update Agent
Claude Developer Platform · in the page
api/beta/agents/update
…n. - `type: optional "web_fetch"` - `BetaManagedAgentsWebSearchToolConfigParams object` Configuration override for the web_search tool. - `name: "web_search"`…
Versions
Claude Developer Platform · in the page
api/beta/agents/versions
…mber or null` format: int32 - `BetaManagedAgentsWebSearchToolConfig object` Configuration for the web_search tool. - `enabled: boolean` - `name:…
List Agent Versions
Claude Developer Platform · in the page
api/beta/agents/versions/list
…mber or null` format: int32 - `BetaManagedAgentsWebSearchToolConfig object` Configuration for the web_search tool. - `enabled: boolean` - `name:…
Messages
Claude Developer Platform · in the page
api/beta/messages
…- `type: "content_block_location"` - `BetaCitationWebSearchResultLocationParam object` - `cited_text: string` - `encrypted_index: string` - `…
Batches
Claude Developer Platform · in the page
api/beta/messages/batches
…- `type: "content_block_location"` - `BetaCitationWebSearchResultLocationParam object` - `cited_text: string` - `encrypted_index: string`…
Create a Message Batch
Claude Developer Platform · in the page
api/beta/messages/batches/create
…- `type: "content_block_location"` - `BetaCitationWebSearchResultLocationParam object` - `cited_text: string` - `encrypted_index: string`…
Retrieve Message Batch results
Claude Developer Platform · in the page
api/beta/messages/batches/results
…default: content_block_location - `BetaCitationsWebSearchResultLocation object` - `cited_text: string` - `encrypted_index: string`…
Count tokens in a Message
Claude Developer Platform · in the page
api/beta/messages/count_tokens
…- `type: "content_block_location"` - `BetaCitationWebSearchResultLocationParam object` - `cited_text: string` - `encrypted_index: string` - `…
Create a Message
Claude Developer Platform · in the page
api/beta/messages/create
…- `type: "content_block_location"` - `BetaCitationWebSearchResultLocationParam object` - `cited_text: string` - `encrypted_index: string` - `…
Sessions
Claude Developer Platform · in the page
api/beta/sessions
…- `type: optional "web_fetch"` - `BetaManagedAgentsWebSearchToolConfigParams object` Configuration override for the web_search tool. - `name: "web_search"`…
Archive Session
Claude Developer Platform · in the page
api/beta/sessions/archive
…format: int32 - `BetaManagedAgentsWebSearchToolConfig object` Configuration for the web_search tool. - `enabled: boolean`…
Create Session
Claude Developer Platform · in the page
api/beta/sessions/create
…- `type: optional "web_fetch"` - `BetaManagedAgentsWebSearchToolConfigParams object` Configuration override for the web_search tool. - `name: "web_search"`…
Events
Claude Developer Platform · in the page
api/beta/sessions/events
…format: int32 - `BetaManagedAgentsWebSearchToolConfig object` Configuration for the web_search tool. - `enabled: boolean`…
List Events
Claude Developer Platform · in the page
api/beta/sessions/events/list
…format: int32 - `BetaManagedAgentsWebSearchToolConfig object` Configuration for the web_search tool. - `enabled: boolean`…
Stream Events
Claude Developer Platform · in the page
api/beta/sessions/events/stream
…format: int32 - `BetaManagedAgentsWebSearchToolConfig object` Configuration for the web_search tool. - `enabled: boolean`…
List Sessions
Claude Developer Platform · in the page
api/beta/sessions/list
…format: int32 - `BetaManagedAgentsWebSearchToolConfig object` Configuration for the web_search tool. - `enabled: boolean`…
Get Session
Claude Developer Platform · in the page
api/beta/sessions/retrieve
…format: int32 - `BetaManagedAgentsWebSearchToolConfig object` Configuration for the web_search tool. - `enabled: boolean`…
Threads
Claude Developer Platform · in the page
api/beta/sessions/threads
…null` format: int32 - `BetaManagedAgentsWebSearchToolConfig object` Configuration for the web_search tool. - `enabled: boolean`…
Archive Session Thread
Claude Developer Platform · in the page
api/beta/sessions/threads/archive
…null` format: int32 - `BetaManagedAgentsWebSearchToolConfig object` Configuration for the web_search tool. - `enabled: boolean`…
Events
Claude Developer Platform · in the page
api/beta/sessions/threads/events
…format: int32 - `BetaManagedAgentsWebSearchToolConfig object` Configuration for the web_search tool. - `enabled: boolean`…
List Session Thread Events
Claude Developer Platform · in the page
api/beta/sessions/threads/events/list
…format: int32 - `BetaManagedAgentsWebSearchToolConfig object` Configuration for the web_search tool. - `enabled: boolean`…
Stream Session Thread Events
Claude Developer Platform · in the page
api/beta/sessions/threads/events/stream
…format: int32 - `BetaManagedAgentsWebSearchToolConfig object` Configuration for the web_search tool. - `enabled: boolean`…
List Session Threads
Claude Developer Platform · in the page
api/beta/sessions/threads/list
…null` format: int32 - `BetaManagedAgentsWebSearchToolConfig object` Configuration for the web_search tool. - `enabled: boolean`…
Get Session Thread
Claude Developer Platform · in the page
api/beta/sessions/threads/retrieve
…null` format: int32 - `BetaManagedAgentsWebSearchToolConfig object` Configuration for the web_search tool. - `enabled: boolean`…
Update Session
Claude Developer Platform · in the page
api/beta/sessions/update
…- `type: optional "web_fetch"` - `BetaManagedAgentsWebSearchToolConfigParams object` Configuration override for the web_search tool. - `name: "web_search"`…
Messages
Claude Developer Platform · in the page
api/messages
…- `type: "content_block_location"` - `CitationWebSearchResultLocationParam object` - `cited_text: string` - `encrypted_index: string` - `…
Batches
Claude Developer Platform · in the page
api/messages/batches
…- `type: "content_block_location"` - `CitationWebSearchResultLocationParam object` - `cited_text: string` - `encrypted_index: string`…
Create a Message Batch
Claude Developer Platform · in the page
api/messages/batches/create
…- `type: "content_block_location"` - `CitationWebSearchResultLocationParam object` - `cited_text: string` - `encrypted_index: string`…
Retrieve Message Batch results
Claude Developer Platform · in the page
api/messages/batches/results
…default: content_block_location - `CitationsWebSearchResultLocation object` - `cited_text: string` - `encrypted_index: string`…
Count tokens in a Message
Claude Developer Platform · in the page
api/messages/count_tokens
…- `type: "content_block_location"` - `CitationWebSearchResultLocationParam object` - `cited_text: string` - `encrypted_index: string` - `…
Create a Message
Claude Developer Platform · in the page
api/messages/create
…- `type: "content_block_location"` - `CitationWebSearchResultLocationParam object` - `cited_text: string` - `encrypted_index: string` - `…
context-editing
Claude Developer Platform · in the page
build-with-claude/context-editing
…cent developments in AI" } ], Tools = [ new BetaWebSearchTool20250305() ], ContextManagement = new BetaContextManagementConfig { Edits = [new BetaClea…
handling-stop-reasons
Claude Developer Platform · in the page
build-with-claude/handling-stop-reasons
…} ``` ```csharp C# List<ToolUnion> tools = [new ToolUnion(new WebSearchTool20250305())]; MessageParam userMessage = new() { Role = Role.User, Content = "Search for latest AI news" }; var…
streaming
Claude Developer Platform · in the page
build-with-claude/streaming
…ClaudeOpus5, MaxTokens = 1024, Tools = [new ToolUnion(new WebSearchTool20250305() { MaxUses = 5 })], Messages = [new() { Role = Role.User, Content = "What is the weather like in New…
apple-foundation-models
Claude Developer Platform · in the page
cli-sdks-libraries/libraries/apple-foundation-models
…eLanguageModel( name: .sonnet5, auth: auth, serverTools: [ .webSearch(maxUses: 5), .codeExecution, ] ) ``` `.webSearch` and `.webFetch` accept optional `allowedDomains`, `blockedDomai…
tools
Claude Developer Platform · in the page
managed-agents/tools
…Configs = [ new BetaManagedAgentsWebSearchToolConfigParams { AllowedDomains = ["docs.example.com", "arxiv.org"],…
How the agent loop works
Claude Code CLI · in the page
agent-sdk/agent-loop
…operations | | **Web** | `WebSearch`, `WebFetch` | Search the web, fetch and parse pages…
Agent SDK reference - Python
Claude Code CLI · in the page
agent-sdk/python
…| | `webSearchRequests` | `int` | Web search requests made by this model.…
Quickstart
Claude Code CLI · in the page
agent-sdk/quickstart
…s = ClaudeAgentOptions( allowed_tools=["Read", "Edit", "Glob", "WebSearch"], permission_mode="acceptEdits" ) ``` ```typescript TypeScript hidelines={1,-1} theme={null} const _ = { o…