Skip to main content
The TypeScript SDK and docs are currently in beta. Report issues on GitHub.

Example Usage

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

let value: OutputWebSearchCallItem = {
  action: {
    pattern: "<value>",
    type: "find_in_page",
    url: "https://faraway-deduction.net",
  },
  id: "ws-abc123",
  status: "completed",
  type: "web_search_call",
};

Fields

FieldTypeRequiredDescriptionExample
actionmodels.Action:heavy_check_mark:N/A
idstring:heavy_check_mark:N/A
statusmodels.WebSearchStatus:heavy_check_mark:N/Acompleted
typemodels.TypeWebSearchCall:heavy_check_mark:N/A