get_page_html
Retrieve raw outerHTML of page elements using CSS selectors, or full page HTML. Inspect markup structure for SEO, accessibility, or DOM analysis.
Instructions
Return the raw outerHTML of matching elements, or the full page HTML if no selector, truncated to max_length. Returns the HTML string(s). Use to inspect component/markup structure — e.g. head meta tags for SEO, or a widget's DOM. Standard CSS selectors only.
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": {
"session_id": "<session_id>"
},
"name": "get_page_html"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | No | CSS selector (optional — omit for full page HTML) | |
| max_length | No | Max characters to return (default: 50000) | |
| session_id | Yes | Session ID |