Skip to content

FetchUrlTool

FetchUrlTool = Tool<{ url: string; }, FetchUrlResult>

Defined in: web/tools.ts:88

createFetchUrlTool’s return type. Unlike BashTools/FileTools, this isn’t a named bag wrapping one or more tools by key — fetchUrl is the only tool this module will ever produce, so createFetchUrlTool returns it directly rather than as { fetchUrl: ... }, which only costs callers an extra unwrap for no benefit.