websearch_fetch_page
Fetch webpage content and convert it to clean markdown to reduce token usage for LLM processing, with options for metadata extraction and formatting control.
Instructions
Fetch a URL and return its content as clean markdown. Uses html-to-markdown for high-performance conversion that dramatically reduces token usage.
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": "websearch_fetch_page"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL to fetch | |
| extract_metadata | No | Include YAML frontmatter with page metadata | |
| heading_style | No | Heading style: "atx" (#) or "underlined" | atx |
| max_chars | No | Maximum characters in output |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |