web_smart_fetch
Fetch web content with automatic truncation when token limits are exceeded, returning markdown. Use web_preflight to check size beforehand.
Instructions
Fetch URL with automatic truncation if content exceeds token limit. Use web_preflight first to check size. Returns markdown content.
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_smart_fetch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL to fetch | |
| max_tokens | No | Maximum tokens to return (default 8000) | |
| strategy | No | How to handle large content | auto |
| timeout | No | Request timeout in seconds (default 30, max 120) |