Skip to main content

Module web_fetch

Module web_fetch 

Source
Expand description

web_fetch: fetch a URL and answer a prompt about its content.

The tool fetches the URL, reduces it to text, and asks a small fast summarizer model to answer the prompt over that content, so large pages never reach the main agent’s context. By default the request runs as curl inside the agent’s sandbox (the same seam shell and the file tools use), so a sandbox with network isolation or egress rules covers web_fetch too; WebFetchTransport::Direct fetches from the harness process instead. Fetched pages are cached per tool for 15 minutes.

Structs§

WebFetchConfig
Per-tool config for the web_fetch built-in (WebFetchConfig).
WebFetchConfigBuilder
Use builder syntax to set the inputs and finish with build().

Enums§

WebFetchTransport
How web_fetch makes its request (WebFetchTransport).

Functions§

web_fetch_tool
Builds the web_fetch tool.