read
Extract page title, URL, and text content or anchor links from a Safari tab. Use an optional CSS selector to scope extraction to specific page sections.
Instructions
Get the page title, URL, and either text content or anchor links
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | No | Tab index in the front window; defaults to the current tab | |
| mode | No | Extraction mode: full text content or anchor links | text |
| selector | No | CSS selector to scope extraction |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | Page title | |
| url | Yes | Page URL | |
| text | No | Extracted text content; present when mode is "text" | |
| links | No | Anchor links; present when mode is "links" | |
| pages | Yes | Number of viewport-sized pages | |
| errors | No | Console errors captured during the page session, when any | |
| warnings | No | Console warnings captured during the page session, when any |