run_applescript
Execute AppleScript commands on macOS and receive their output. Automates app control and system tasks while blocking destructive actions for safety.
Instructions
Run an arbitrary AppleScript and return its result.
Destructive scripts (delete, erase, shutdown, restart, trash, etc.) are refused for safety — do those manually.
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": {
"script": "<script>"
},
"name": "run_applescript"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script | Yes |