Key
keySend keyboard keys or chord shortcuts to a target macOS application. Use to automate commands like cmd+a or return, with optional repeat and app scoping.
Instructions
Send a key or chord to a scoped application.
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": {
"text": "<text>"
},
"name": "key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Key or chord, for example cmd+a or return. | |
| repeat | No | ||
| app_ref | No | ||
| strategy | No | Prefer accessibility, require accessibility, or require event dispatch. | auto |
| return_state | No | Optionally observe the target again after the action. | none |