safari_find_tab
Search open Safari tabs by URL or title substring to locate and activate the right tab, avoiding duplicate tabs or interrupting the user's logged-in session.
Instructions
Search all open Safari tabs by URL or title substring. Returns matching tabs with window_index and tab_index so you can activate them. Use this before safari_open_url to avoid opening a duplicate tab or losing the user's existing session (e.g. their logged-in GitHub tab).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "safari_find_tab"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Case-insensitive substring to match against tab URL or title (e.g. "github.com", "Pull Requests") |