safari_js
Run custom JavaScript inside a live Safari tab and retrieve the string-coerced output. Use it to manipulate page content or extract data directly from the browser session.
Instructions
Evaluate arbitrary JavaScript in a Safari tab's page context and return the string-coerced result. Requires Safari's Develop menu > 'Allow JavaScript from Apple Events' to be enabled.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tab | No | ||
| code | Yes | ||
| window | No |