get_page_content
Retrieve a webpage's readable text, raw HTML, or both for content analysis, with optional CSS selector extraction to target specific page elements.
Instructions
Fetch the text and/or HTML content of a webpage. Returns { url, title, html?, text?, meta }. Use format to choose output: "text" (readable content), "html" (raw HTML), or "both". Optionally pass a CSS selector to extract content from a specific element.
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": "get_page_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL of the page to fetch | |
| format | No | Output format: "text" for readable content, "html" for raw HTML, "both" for both | text |
| selector | No | Optional CSS selector to extract content from a specific element | |
| max_length | No | Maximum character length per format (default 50000) |