safari_javascript
Execute JavaScript code in the active Safari tab and return the result. Enables automation and data extraction from web pages without leaving the browser.
Instructions
Execute arbitrary JavaScript in the current page and return the result.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | JS expression or statements. Use return for values. | |
| tabId | No | Tab ID — omit to use the active tab | |
| profile | No | Safari profile name (e.g. "Perso", "Pro"). Omit to use the first connected profile. |