Skip to main content

Function: webFetchTool()

webFetchTool(options?): ZodToolDefinition<ZodObject<{ content: ZodOptional<ZodEnum<{ full: "full"; main: "main"; }>>; offset: ZodOptional<ZodNumber>; url: ZodString; }, $strip>, WebFetchResult>

Defined in: packages/tools/src/web/web-fetch.ts:537

The web_fetch tool. Failures throw WebFetchError (the loop's toolFailMode decides what the model sees).

Parameters​

options?​

WebFetchToolOptions = {}

Returns​

ZodToolDefinition<ZodObject<{ content: ZodOptional<ZodEnum<{ full: "full"; main: "main"; }>>; offset: ZodOptional<ZodNumber>; url: ZodString; }, $strip>, WebFetchResult>