read
Retrieve the page title, URL, and either full text content or anchor links from a Safari tab.
Instructions
Get the page title, URL, and either text content or anchor links
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "read"
}
}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 |