get_dom_tree
Extracts the visible page as structured data: rendered text, heading outline, and numbered interactive elements that action tools target by numeric id.
Instructions
Extracts the visible page as structured data: rendered text, a heading outline, and a numbered list of interactive elements (links, buttons, inputs, selects, contenteditable). Action tools target elements by their numeric id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| privacy | No | strict masks every input value. | default |
| clientId | No | Optional target page; defaults to the most recently active page. | |
| include_text | No | Include the rendered visible text of the page. | |
| max_elements | No | Cap for numbered interactive elements. | |
| max_text_chars | No | Character cap for the text field. | |
| include_outline | No | Include the heading/section outline. | |
| include_interactive | No | Include numbered interactive elements. |