read_page
Get visible text from any Safari tab or a chosen element inside it, returning rendered content as seen by the user. Use this tool to read page content accurately without dealing with raw markup.
Instructions
Read the visible text of a tab, or of one element inside it.
This is the workhorse — prefer it over screenshots. It returns rendered
text (innerText), so it reflects what a person would actually see rather
than raw markup.
Args: tab: Tab index within window 1, or a substring of its URL or title. selector: Optional CSS selector. Omit it to read the whole page. max_chars: Truncate beyond this many characters. Default 8000.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tab | Yes | ||
| selector | No | ||
| max_chars | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |