OutputWebSearchServerToolItemAction - TypeScript SDK

OutputWebSearchServerToolItemAction type definition

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

The 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.

Example Usage

1import { OutputWebSearchServerToolItemAction } from "@openrouter/sdk/models";
2
3let value: OutputWebSearchServerToolItemAction = {
4 query: "<value>",
5 type: "search",
6};

Fields

FieldTypeRequiredDescription
querystring✔️N/A
sourcesmodels.OutputWebSearchServerToolItemSource[]N/A
typemodels.OutputWebSearchServerToolItemTypeSearch✔️N/A