inspect
Opens a URL in a recording profile, lists every interactive element with ranked selectors, and saves logs and a screenshot to guide automation.
Instructions
Open a URL in the recording profile (logged-in state included) and list every visible interactive element with UNIQUE selectors ranked data-testid → id → aria-label → role/text → name/placeholder → class → path, plus headings and iframes. Use it BEFORE writing targets — no selector guessing, no wasted probe. Writes logs/inspect-.json and a screenshot in the demo dir. Returns a jobId immediately — poll job_status. Rejects if another job is running.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir | Yes | demo project directory — pass an absolute path | |
| url | Yes | page to inspect (absolute URL) | |
| limit | No | max elements (default 80) | |
| frames | No | iframe selectors to scan too, as in the storyboard `frames` block | |
| profile | No | Chrome user-data dir (default: the recording profile) | |
| headless | No | default true | |
| viewport | No | default 1280x720 (use the storyboard's video size) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| jobId | Yes | ||
| status | Yes | ||
| demoDir | Yes | resolved absolute demo directory | |
| logFile | Yes |