Take page snapshot
take_snapshotRead a page as compact text with stable element UIDs, giving the accessibility tree needed for click, fill, hover, drag, and upload actions.
Instructions
Read the page as compact text, with a uid for every element.
This is the primary way to see a page, and the source of the uids that click, fill, hover, drag and upload_file all take. Prefer it over take_screenshot for anything but a genuine visual check: it is searchable, far smaller, and it is what makes interaction possible at all.
The output is the accessibility tree — roles, names, values and states,
indented by nesting — with Chrome-internal and purely presentational nodes
filtered out unless verbose is set.
uids stay stable across snapshots for elements that did not change, but any page change can invalidate them. Whenever a tool reports "unknown uid", take a fresh snapshot and use the new uid. Output is capped at 200 000 characters.
For plain page text without uids, get_page_content is cheaper; to find elements by CSS selector, use query_selector.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| verbose | No | Return the complete accessibility tree, including nodes normally filtered out as noise and containers that are otherwise collapsed. Much larger — use it only when an element you need is missing from the default output. | |
| file_path | No | Write the snapshot to this local path instead of returning it — useful for very large pages you intend to search rather than read in full. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |