Skip to main content
web.fetch fetches readable text content from a specific URL. It returns the extracted page text, title, content hash, and metadata. Use it when the model needs the full content of a known page rather than a ranked search snippet.

PHI enforcement

The URL and any query context are scanned before the fetch executes. The retrieval-specific behavior is controlled by your org’s phi_retrieval_behavior setting: redact (default) strips PHI before the fetch proceeds; block rejects the tool call entirely if PHI is detected. External providers never receive PHI under any circumstance.

Billing

  • 2 AI Credits flat surcharge per call, debited on provider success.
  • Normal input-token cost applies to the injected extractedText content.
The surcharge is only charged when the provider returns a successful response. No charge is applied for failed fetches, timeouts, or PHI-blocked calls.

Limits

Pages that exceed the 2 MB limit are truncated to fit. The contentHash field reflects the hash of the full fetched content before truncation.

Input parameters

Output fields

Example

Tool call emitted by the model:
Result injected into context:

Error codes

See Errors for the full error envelope shape.