press
Simulate key or chord input (Enter, Escape, Control+s) in a desktop app, optionally focusing a locator first without clicking it. Use for shortcuts, navigation, and form submission.
Instructions
Press a key or chord (Enter, Escape, Tab, ArrowDown, F5, a, Control+s, Shift+Tab). Optional locator is focused first without clicking it.
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": {
"session_id": "<session_id>",
"key": "<key>"
},
"name": "press"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| count | No | ||
| locator | No | ||
| session_id | Yes |