script
Execute automation code in AppleScript or JavaScript for Automation against macOS apps with automation dictionaries, returning the result as text.
Instructions
Run AppleScript (default) or JavaScript for Automation. Best for apps with a scripting dictionary. Returns the result as text.
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": {
"app": "<app>",
"source": "<source>"
},
"name": "script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | Yes | ||
| source | Yes | ||
| language | No |