wrave_get_dom_tree
Extract a clean, LLM-friendly DOM tree with bounding boxes and interactive element metadata for a specified tab, optionally including full HTML and configurable nesting depth.
Instructions
Extract clean, LLM-friendly DOM tree with bounding boxes [x, y, w, h] and interactive element metadata.
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": {
"tab_id": "<tab_id>"
},
"name": "wrave_get_dom_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | No | Return full HTML if true | |
| tab_id | Yes | The ID of the tab | |
| max_depth | No | Max tree nesting depth |