inspect_dom
Inspect DOM elements via CSS selector or evaluate JavaScript in page context, optionally navigating to a URL first.
Instructions
Inspect DOM elements or run JavaScript in a page context. Optionally navigate to a URL first.
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 |
|---|---|---|---|
| url | No | URL to navigate to before inspecting (optional) | |
| script | No | JavaScript expression to evaluate in page context (overrides selector) | |
| selector | No | CSS selector to query — returns outerHTML of all matching elements |