web_fetch
Fetch any URL and convert its page content into readable markdown for research, quoting, summarization, or link checking. Retrieves live webpage text one URL per call.
Instructions
What it does: Fetches the content of a single URL and returns it as readable markdown. HTML is converted to markdown so the result is easy to read and quote.
When to use: Use this tool whenever you need to retrieve or analyze live webpage content (e.g. research, quoting, summarization, checking a link, comparing pages).
Use cases (in order):
Recall: The LLM recalls or selects the relevant URL(s) from the user's question, its knowledge, context, or links the user provided. Then call this tool for each URL to get up-to-date content. One URL per call.
Crawling: When you need many pages or want to crawl multiple URLs, call this tool in a loop. One tool call per URL. Do not pass multiple URLs in one call. Iterate over the list and call once per URL.
Rules and limits:
The URL must be a fully-formed, valid URL (http or https).
This tool is read-only. It does not perform actions that change state or have side effects.
Results may be live or cached; the tool does not guarantee real-time freshness.
Authentication is not supported. If the URL requires login or auth, an error will be returned.
If the server returns a non-200 status (e.g. 404, 500), the tool returns an error message instead of page content.
This fetch runs from an isolated environment. Hosts like localhost and private IPs may not work.
Binary content is not supported (e.g. media files, PDFs). Only text-like responses are returned.
Requests are bounded by a maximum timeout. Very slow or unresponsive URLs will return a timeout error.
For static assets or non-webpage URLs, use another tool if available.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "<url>"
},
"name": "web_fetch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The URL to fetch. The content will be converted to a readable markdown format. |