tool_send_keys
Send keyboard shortcuts to a specific window, including Alt+key menu navigation. Refuses to interrupt when the user is active or when the target window isn't foreground.
Instructions
Send keyboard shortcut to a window. Example: keys=['ctrl','s']. For Alt+key menu navigation, include 'alt' as first key (or set use_alt_key). MUTATING: serialized across agent sessions via the admission gate, and global hotkeys additionally YIELD TO THE USER — recent mouse/keyboard activity makes them wait, then refuse with reason user-active instead of interrupting; switch to element actions or retry later. Also refuses when the window is not the foreground window, because injected keys would go to the wrong window.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hwnd | No | ||
| keys | No | ||
| title | No | ||
| use_alt_key | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||