ToolWebSearch20260209 - TypeScript SDK
ToolWebSearch20260209 - TypeScript SDK
ToolWebSearch20260209 type definition
ToolWebSearch20260209 - TypeScript SDK
The TypeScript SDK and docs are currently in beta. Report issues on GitHub.
1 import { ToolWebSearch20260209 } from "@openrouter/sdk/models"; 2 3 let value: ToolWebSearch20260209 = { 4 name: "web_search", 5 type: "web_search_20260209", 6 };
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
allowedCallers | models.AnthropicAllowedCallers[] | ➖ | N/A | [ “direct” ] |
allowedDomains | string[] | ➖ | N/A | |
blockedDomains | string[] | ➖ | N/A | |
cacheControl | models.AnthropicCacheControlDirective | ➖ | Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models. | {"type": "ephemeral"} |
maxUses | number | ➖ | N/A | |
name | models.NameWebSearch2 | ✔️ | N/A | |
type | models.TypeWebSearch20260209 | ✔️ | N/A | |
userLocation | models.AnthropicWebSearchToolUserLocation | ➖ | N/A | {"city": "San Francisco","country": "US","region": "California","timezone": "America/Los_Angeles","type": "approximate"} |