OutputWebFetchServerToolItem - TypeScript SDK

OutputWebFetchServerToolItem type definition

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

An openrouter:web_fetch server tool output item

Example Usage

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

Fields

FieldTypeRequiredDescriptionExample
contentstringN/A
errorstringThe error message if the fetch failed.
httpStatusnumberThe HTTP status code returned by the upstream URL fetch.
idstringN/A
statusmodels.ToolCallStatus✔️N/Acompleted
titlestringN/A
typemodels.OutputWebFetchServerToolItemType✔️N/A
urlstringN/A