orq:web_fetch tool retrieves text from a URL chosen by the model. The AI Gateway checks the URL before fetching it and returns the extracted content to the model.
Quick start
The examples use the client configuration from the Server tools overview.Configuration
URL restrictions
The tool accepts publichttp and https URLs. It rejects loopback, link-local, private, and unspecified IP addresses. Domain rules are checked before the fetch runs.
When a URL is rejected, the model receives the reason and can choose another URL. Rejected URLs do not use a max_uses slot.
Usage
Fetches that pass URL validation and the usage limit appear atusage.server_tool_use.web_fetch_requests. There is no separate server-tool charge for web fetch in this release.
Use Web search when the URL is not known in advance.