hold_key
Press and hold a keyboard key for a specified duration in milliseconds to simulate sustained input for automation tasks.
Instructions
Hold a key for a duration (ms).
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>",
"duration": "<duration>"
},
"name": "hold_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| app_ref | No | ||
| duration | Yes |