run_applescript
Execute AppleScript code to automate macOS system controls, app management, and task scheduling. Provide script and optional timeout for precise automation.
Instructions
Execute arbitrary AppleScript code.
Args: script: AppleScript code to execute timeout: Maximum execution time in seconds (default: 30)
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 | ||
| timeout | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |