dom_get_html
Retrieve the inner or outer HTML of the first element matching a selector, capped at a byte limit, to uncover page structure beyond what DOM queries reveal.
Instructions
Get the inner or outer HTML of the first element matching a selector, truncated to a byte budget. Useful for understanding structure you cannot infer from dom_query alone.
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": {
"selector": "<selector>"
},
"name": "dom_get_html"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| frame | No | 'main' (default), or a substring of a frame's origin/name. | main |
| inner | No | innerHTML instead of outerHTML. | |
| selector | Yes | CSS selector. | |
| max_bytes | No | Truncate beyond this many characters. |