imgui_press_key
Simulate single key presses or modifier key combos like Ctrl+S and Shift+A. Use it to trigger keyboard input for testing and interacting with Dear ImGui game UIs in real time.
Instructions
Simulate a key press and release. Supports single keys and modifier combos. Examples: 'Enter', 'Tab', 'Escape', 'Ctrl+S', 'Shift+A', 'Ctrl+Shift+Z'
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": "imgui_press_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Key name or combo (e.g. 'Enter', 'Tab', 'Ctrl+S') |