DOM snapshot
dom_snapshotGet the rendered HTML of a page or a CSS-selected subtree to inspect the exact DOM state, providing precise page content for agents instead of screenshots.
Instructions
Return the rendered HTML of a target — the whole document, or just the subtree of the first element matching a CSS selector. This is the DOM the agent should read instead of a screenshot: it carries far more information and is exact.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | No | CSS selector to scope the snapshot to (omit for the full document). | |
| target_id | Yes | Target id from list_targets — the page / webview / Electron window to inspect. |