cloak_snapshot
Capture a page's accessibility tree to identify interactive elements for browser automation. Use this tool before interacting with pages to get reliable element references for clicking, typing, or selecting.
Instructions
Capture the page's accessibility tree — the PRIMARY way to understand pages.
Returns interactive elements with [@eN] ref IDs for use with cloak_click, cloak_type, cloak_select, etc. Call this BEFORE interacting with a page.
full=False (default): interactive elements only — compact and fast. full=True: includes surrounding text content for reading context.
This is FASTER, CHEAPER, and MORE RELIABLE than screenshots. Always prefer this over cloak_screenshot for deciding what to click.
Args: page_id: Target page ID from cloak_launch or cloak_new_page. full: Include text content alongside interactive elements. max_length: Max characters to return (default: 12000).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page_id | Yes | ||
| full | No | ||
| max_length | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||