safari_eval_file
Executes JavaScript from a .js file path, avoiding huge inline scripts and enabling binary uploads via generated base64 files. Uses Safari's extension-first engine with AppleScript fallback.
Instructions
Execute JavaScript read from a FILE path (avoids passing huge scripts inline / manual copy). Same engine as safari_evaluate: extension-first (no focus steal), AppleScript fallback. Use to upload binary via a generated .js containing base64.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to a .js file whose contents are the script to execute | |
| receipt | No | Opaque extension-issued tab receipt — pass the one safari_new_tab returned to keep targeting that tab after an MCP reconnect |