press_keys
Send keyboard chords to a GUI session, optionally holding keys down or releasing them, to automate shortcuts, typing, and held-key actions like movement.
Instructions
Press keys in turn, each a chord: Tab, Return, Escape, ctrl+s, alt+shift+Tab, F6. They go to whatever has the keyboard; click a window first with click_element if nothing does. hold presses them all together and keeps them down that long (walking while running); state down leaves them down, across calls, until a call with state up (move or click while a key is held). The answer says what it pressed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hold | No | Seconds to keep it down before letting go | |
| keys | Yes | Chords, pressed one after another | |
| state | No | Only press, leaving it down until a call with up; or only let go | |
| session | Yes | Its name, from start_session |