crypsis_get_dom
Retrieve a structured DOM tree via CDP, including node IDs, names, attributes, and children. Target elements with CSS selectors, control tree depth, and pierce shadow DOM boundaries.
Instructions
Get structured DOM tree via CDP. Returns nodeId, nodeName, attributes, children. Supports shadow DOM piercing.
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": "crypsis_get_dom"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | Tree depth to return (default 4, use -1 for full tree) | |
| pierce | No | Pierce shadow DOM boundaries (default true) | |
| selector | No | Optional CSS selector to target a specific element |