inspector.snapshot
Captures a single-pass DOM snapshot with structure, layout, and selected computed styles across shadow roots and iframes, then writes it to an artifact for inspection.
Instructions
DOMSnapshot: structure, layout and selected computed styles in one pass, flattened across shadow roots and iframes. Written to an artifact.
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": "inspector.snapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| save_path | No | ||
| target_id | No | Target handle (tgt_*). Omit for the active page. | |
| browser_id | No | Browser handle (br_*). Omit to use the only running browser, or auto-launch one. | |
| computed_styles | No |