rm_key
Presses a key or key chord (e.g., ENTER, TAB, ctrl+S) on the focused UI component or a specified target, enabling keyboard-driven interaction and shortcut automation.
Instructions
Press a key or chord on the focused component (or target): e.g. ENTER, ESCAPE, TAB, DELETE, F11, ctrl+S, ctrl+shift+Z.
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": {
"keys": "<keys>"
},
"name": "rm_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Component id from rm_ui_tree / rm_ui_find | |
| keys | Yes | ||
| name | No | Match Swing component name | |
| text | No | Match visible text / label (substring, case-insensitive) | |
| class | No | Match Java class name, e.g. JButton, JTree | |
| exact | No | Exact (not substring) text match | |
| index | No | Which match to use when several match (0-based) | |
| repeat | No | ||
| window | No | Window id from rm_windows (default: active window) | |
| tooltip | No | Match tooltip text | |
| wait_ms | No |