web_fetch
Extract clean text from web pages. Use 'text' mode for full content or 'highlights' mode to get relevant excerpts for a specific query.
Instructions
Extracts page content as clean text. Supports two modes: "text" (full page, default) and "highlights" (most relevant excerpts for a query, ~10x fewer tokens). Prefer "highlights" with a query for factual searches. Use "text" for deep analysis. Ideal for reading articles, documentation and blogs.
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 | Full page URL to extract content from (ex: https://example.com) | |
| mode | No | Mode: "text" returns full page; "highlights" extracts relevant excerpts (requires query) | text |
| query | No | Query to extract highlights — use the same query from web_search that led to this URL | |
| maxChars | No | Maximum content characters (100-50000, default 5000) |