Skip to main content
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

import { OutputWebSearchServerToolItemAction } from "@openrouter/sdk/models";

let value: OutputWebSearchServerToolItemAction = {
  query: "<value>",
  type: "search",
};

Fields

FieldTypeRequiredDescription
querystring:heavy_check_mark:N/A
sourcesmodels.OutputWebSearchServerToolItemSource[]:heavy_minus_sign:N/A
typemodels.OutputWebSearchServerToolItemTypeSearch:heavy_check_mark:N/A