Use this recipe when a workflow needs one page fetched and turned into bounded text before the model performs extraction, summarization, or classification.Documentation Index
Fetch the complete documentation index at: https://docs.ai-stats.phaseo.app/llms.txt
Use this file to discover all available pages before exploring further.
1. Use gateway:web_fetch for one-page grounding
gateway:web_fetch is a gateway-managed server tool.
Use it when you need:
- one URL fetched directly by the gateway
- bounded text returned to the tool loop
- request-level usage tracking
- fetched-page visibility in request logs
2. Keep the request explicit
Typical pattern:- ask the model to call
gateway:web_fetch - let the gateway fetch and normalize the page
- let the model continue with extraction against the returned text
- extract fields
- summarize one section
- classify the document
- validate one claim
3. Bound fetch size intentionally
Usemax_chars when the default bound is too large or too small for the task.
Recommended pattern:
- smaller bounds for title/summary extraction
- larger bounds for structured field extraction
4. Validate logs, not just the final answer
The request details should show:- fetched URL
- final URL after redirects
- page title when available
- HTTP status
- content type
- returned character count
- truncation flag
5. Know the tool limits
gateway:web_fetch is intentionally bounded.
It is good for:
- HTML pages
- plain text
- light JSON or XML responses
- binary files
- large crawls
- JavaScript-only rendering checks
6. Recommended rollout pattern
- start with one preset or one endpoint path
- inspect request logs for fetch metadata and truncation
- tighten prompt scope if the fetched content is too broad
- widen only after the grounded extraction path is stable