tool_send_keys
Send keyboard shortcut to a window. Example: keys=['ctrl','s']. Physical keys follow the active input method. A successful dispatch does not verify that text was committed. Use set_value for literal text when available.
Instructions
Send keyboard shortcut to a window. Example: keys=['ctrl','s']. Physical keys follow the active input method. A successful dispatch does not verify that text was committed. Use set_value for literal text when available. 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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "tool_send_keys"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hwnd | No | ||
| keys | No | ||
| title | No | ||
| use_alt_key | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||