Skip to main content
The TypeScript SDK and docs are currently in beta. Report issues on GitHub.
OpenRouter built-in server tool: searches the web for current information

Example Usage

Fields

FieldTypeRequiredDescriptionExample
parametersmodels.WebSearchConfig:heavy_minus_sign:N/A{"max_results": 5,"search_context_size": "medium"}
typemodels.OpenRouterWebSearchServerToolType:heavy_check_mark:N/A