Read the DOM tree of a page through DevTools
browser_dom_treeWalk a real DOM tree via the DevTools inspector walker to return a bounded outline, giving a structured alternative to raw page HTML for large pages.
Instructions
Walk a real DOM tree through the DevTools inspector walker and return a bounded outline. MEASURED: the path is CommandsFactory.forTab -> targetCommand.startListening -> target.getFront("inspector") -> inspector.getWalker() -> walker.getRootNode(), and the root reports nodeName "#document" with numChildren. This is the structured counterpart to browser_page_source (which returns raw HTML text) and is far cheaper for large pages.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| context | No | Tab URL fragment or context id (default: active tab) | |
| maxDepth | No | How deep to walk (default 4) | |
| maxNodes | No | Node budget (default 120) |