ui_press_key
Focus a visible, enabled UI path, press and release a key with optional modifiers, then read back the resulting state to verify shortcuts or form commits.
Instructions
Focus a required visible, enabled path, press/release a key and read back state. Modifiers: CTL/ALT/SHIFT/MAC_CONTROL. Enter can commit forms. Human input and shortcuts can interfere; verify the result.
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": {
"keysym": "<keysym>",
"path": "<path>"
},
"name": "ui_press_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| keysym | Yes | ||
| modifiers | No | ||
| observe_path | No |