fetch_content
Fetches a webpage and extracts clean, readable main text by stripping navigation, headers, scripts, and styles; supports pagination via start_index and max_length.
Instructions
Fetch and extract the main text content from a webpage. Strips out navigation, headers, footers, scripts, and styles to return clean readable text. Use this after searching to read the full content of a specific result. Supports pagination for long pages via start_index and max_length.
Args: url: The full URL of the webpage to fetch (must start with http:// or https://). start_index: Character offset to start reading from (default: 0). Use this to paginate through long content. max_length: Maximum number of characters to return (default: 8000). Increase for more content per request or decrease for quicker responses. ctx: MCP context for logging.
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": "fetch_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| max_length | No | ||
| start_index | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |