safari_eval_file
Executes JavaScript from a local file path in Safari, avoiding inline script size limits and manual copying; enables binary uploads through generated base64 .js files.
Instructions
Execute JavaScript read from a FILE path (avoids passing huge scripts inline / manual copy). Same engine as safari_evaluate: AppleScript (the extension bridge is off in Daylight). Use to upload binary via a generated .js containing base64.
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": {
"path": "<path>"
},
"name": "safari_eval_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to a .js file whose contents are the script to execute | |
| receipt | No | Omit it: Daylight has no tab receipts and refuses a call that passes one |