Skip to content

Variable: webFetchRequestSchema

const webFetchRequestSchema: ZodObject<{ format: ZodOptional<ZodEnum<{ html: "html"; text: "text"; }>>; maxLength: ZodOptional<ZodNumber>; url: ZodString; }, $strip>

Schema for the web_fetch tool input.

  • url: The absolute URL to fetch (must include the scheme, e.g. https://). When an allow-list is configured, a URL it does not permit is refused.
  • format (optional): Return format: “text” (default) strips the page to readable plain text; “html” returns the raw response body. Prefer “text” unless you need the markup.
  • maxLength (optional): Truncate the returned content to at most this many characters (the plugin caps this at its configured limit).