desktop_key_down
Holds a keyboard key or modifier down for sustained shortcuts or input; stateless sessions reject it by design, so use press for one-shot key actions.
Instructions
agent-desktop key-down: Hold a key or modifier down (fails closed in stateless mode; use press)
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": {
"combo": "<combo>"
},
"name": "desktop_key_down"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| combo | Yes | Key or modifier to hold/release: shift, meta, ctrl ... (cmd is accepted); the command is rejected in stateless mode, use press instead | |
| force | No | Send the combo even if the adapter flags it as a dangerous shortcut |