OutputWebSearchServerToolItem - TypeScript SDK

OutputWebSearchServerToolItem type definition

The TypeScript SDK and docs are currently in beta. Report issues on GitHub.

An openrouter:web_search server tool output item

Example Usage

1import { OutputWebSearchServerToolItem } from "@openrouter/sdk/models";
2
3let value: OutputWebSearchServerToolItem = {
4 status: "completed",
5 type: "openrouter:web_search",
6};

Fields

FieldTypeRequiredDescriptionExample
actionmodels.OutputWebSearchServerToolItemActionThe search action performed, matching OpenAI web_search_call.action shape. Includes the query the model issued and optional source URLs returned by the search provider.
idstringN/A
statusmodels.ToolCallStatus✔️N/Acompleted
typemodels.OutputWebSearchServerToolItemTypeOpenrouterWebSearch✔️N/A