inspect_dom
Retrieve a page's HTML, including open shadow roots and same-origin iframes, or search for case-sensitive text to return focused context instead of full markup.
Instructions
Returns the page's HTML (open shadow roots as , same-origin iframes appended after ; at most 100000 characters), or with 'query' the first match and its context. To find elements to act on, prefer 'snapshot'.
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": "inspect_dom"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | Characters after the match, at most 10000. Default: 200. | |
| query | No | Case-sensitive text to find: returns its context instead of the whole HTML. | |
| before | No | Characters before the match, at most 10000. Default: 200. | |
| tab_id | No | Default: the active tab. | |
| instance_id | No | Default: 'default'. |