Web extract
web_extractPage to Markdown for an LLM: give any URL (article, docs page, blog, PDF or Word file) and get its main text as clean Markdown, with navigation, header, footer, forms and scripts dropped, plus title, description, language, author, publish date, image and word count. PDFs and Office documents are converted to text. Optional links=true adds the page's links. Text and JSON URLs come back as-is. Costs $0.002 USDC on Base via x402.
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_extract"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Page URL | |
| links | No | true adds the page's links (up to 300) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | string, e.g. "https://en.wikipedia.org/wiki/HTTP_402" | |
| lang | No | string, e.g. "en" | |
| image | No | string, e.g. "https://thumb.wikimedia.org/wikipedia/commons/thumb/5/5b/HT | |
| notes | No | string, e.g. "Main text as Markdown: navigation, header, footer, forms an | |
| title | No | string, e.g. "List of HTTP status codes - Wikipedia" | |
| words | No | number, e.g. 11994 | |
| author | No | null, e.g. null | |
| status | No | number, e.g. 200 | |
| finalUrl | No | string, e.g. "https://en.wikipedia.org/wiki/HTTP_402" | |
| markdown | No | string, e.g. "(Redirected from [HTTP 402](https://en.wikipedia.org/w/inde | |
| published | No | null, e.g. null | |
| truncated | No | boolean, e.g. false | |
| contentType | No | string, e.g. "text/html; charset=utf-8" | |
| description | No | null, e.g. null | |
| markdownTruncated | No | boolean, e.g. false |