scan_page
Inspect the current page as simplified HTML/text, preserving your real browser login state, to get readable content, frame paths, and control locators for automation.
Instructions
Read the current page as simplified HTML/text, preserving login state from the real browser. cutlist collapses long repeated lists and reports a CSS selector for each container it collapsed, derived from that container's own structure. The built-in scan does not write page attributes, ids, or window globals. Optional extra_js runs caller code and can modify the page or send requests. Background tabs may report viewport height zero; ordinary DOM/text/API work still works there, and only visual/layout fidelity requires explicit activate_tab. The result also includes render_state/content_ready when the page can be probed: shell_only or hydrating means the SPA has not produced reliable content yet; retry scan_page or wait_for before treating an empty result as a real empty page. A timed-out built-in readiness probe releases its tab reservation; missing render fields mean readiness is unknown. observation adds current control locators, editability, recommended_tool and reasons; pass a locator unchanged as page_click/page_type selector. Its frames list gives frame paths for another scan_page call, including cross-origin/OOPIF documents. Frame scans are explicit and do not accept extra_js. Top-document extra_js preserves its existing execution semantics and omits actionable metadata. Locators are observations, not persistent refs: re-scan after page changes. verify_coordinate_target means inspect a screenshot before choosing viewport CSS coordinates; it is not an automatic click. upload_files is recommended only for top-document file inputs outside shadow roots; use locator.css as its string selector. Frame/shadow file inputs report no supported upload. max_targets caps controls and frame entries together (0 disables them, maximum 200); truncated=true means more targets or DOM nodes remain uninspected. maxchars caps content separately. Defaults: cutlist=true, maxchars=35000, max_targets=80, timeout=15 seconds.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| frame | No | ||
| cutlist | No | ||
| timeout | No | ||
| extra_js | No | ||
| maxchars | No | ||
| text_only | No | ||
| session_id | No | ||
| instruction | No | ||
| max_targets | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||