Snapshot elements
surfsky_snapshotTake a numbered snapshot of visible interactive elements and headings on the active tab, returning @N references for automated actions. Get fresh refs after navigation to avoid stale element errors.
Instructions
List the visible interactive elements (links, buttons, inputs, selects) and headings of the active tab as '[@N] role "name"' lines, with href, value, checked, options and disabled where present; use @N as the target of surfsky_act. Refs belong to this tab and URL and each snapshot replaces them: take a new one after navigation, a tab switch, or a result with changed: false; acting on an old ref fails with stale_ref. find narrows the list without renumbering. Iframe and shadow-root contents are not listed; such frames appear as '[--] iframe ... (content not reachable)'. For the page text use surfsky_read; for how it looks, surfsky_screenshot.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| find | No | Case-insensitive substring matched against each element's role, name, href and CSS selector; numbering stays as in the full snapshot. | |
| limit | No | Maximum rows returned (default 500); the result says how many more matched. | |
| session_id | No | Session from surfsky_session_start. Omit for the shared default session, started on first use. | |
| interactive_only | No | Leave out heading rows; list only elements that can be acted on. |