ie_press_key
Press a key on a specified element or the active element in an IE-mode page to trigger keyboard actions such as Enter, Tab, Escape, or literal characters.
Instructions
Press a key on an element (if by/value given) or the active element. Key names: Enter, Tab, Escape, Space, Backspace, Delete, Up/Down/Left/Right, Home, End, PageUp, PageDown, F5, or a literal character. Over COM (target hwnd:/tab:) the key is posted to the window as WM_KEYDOWN/WM_KEYUP (documentMode 7+), so Shift-modified characters are typed unshifted.
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": {
"key": "<key>"
},
"name": "ie_press_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | No | ||
| key | Yes | ||
| wait | No | ||
| frame | No | ||
| value | No | ||
| target | No | Where to act: omit it for the session's IE driver; hwnd:<n> acts over COM on the window <n> (a modal dialog's hwnd from a NOTICE or ie_windows), tab:<n> on an attached tab. Over COM, DOM access is script, input is synthetic (script events and a timer click, not mouse or keyboard input; keys are posted window messages) and only id, name, tag, class, link_text and (documentMode 8+) css locators work. | |
| timeout | No | seconds to wait for the element (default 10) |