hold_key
Hold one or more keyboard keys for a specified duration to trigger shortcuts, key combinations, or press-and-hold actions in macOS automation.
Instructions
Hold one or more keys for a duration.
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": {
"key": "<key>"
},
"name": "hold_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Key name to hold | |
| duration_ms | No | Duration in milliseconds (default 1000) |