press_key
Simulate keyboard input on the focused widget of a PySide6 app. Use named keys (Enter, Escape, arrows) or single characters to trigger actions, navigate, and test UI behavior.
Instructions
Press a key on the currently focused widget. Named keys: enter, return, escape, tab, backtab, backspace, delete, up, down, left, right, space, home, end, pageup, pagedown, f1–f6 Single characters: pass the character directly, e.g. 'a', 'A', '1'
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| pid | No | App pid from launch_app. Omit to target the last launched app. Required only when several apps are running and you need a specific one. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |