get_content
Extract page content as HTML, text, markdown, raw HTTP, or element details using CSS/XPath selectors, including attributes, coordinates, and file-saving to support automation.
Instructions
Get page content in multiple formats: html, text, markdown, rawHttp, or elements. Extracts text, attributes, or bounding box coordinates. Can save directly to a file.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Find elements containing this text | |
| xpath | No | XPath selector | |
| format | No | text | |
| saveAs | No | Absolute file path to save extracted content to disk | |
| timeout | No | ||
| multiple | No | Return multiple matching elements (for format=elements) | |
| selector | No | CSS selector | |
| waitForJS | No | Wait for JavaScript to finish rendering | |
| rawHttpUrl | No | URL to fetch raw HTTP without JS rendering. Defaults to current page URL. | |
| includeMeta | No | Include page title and URL at the top | |
| extractAttributes | No | Extract all element attributes |