ui_keyboard
Dispatch native keyboard key presses or combinations (e.g., Enter, Ctrl+Z) to trigger TradingView shortcuts or dismiss modals. Requires window focus.
Instructions
Dispatch native keyboard key press or key combination (e.g., Enter, Escape, Alt+S, Ctrl+Z) via CDP Input domain. WHEN TO USE: Call when triggering application keyboard shortcuts or dismissing modals. SIDE EFFECTS: STATE_MUTATING (Dispatches keystroke events to focused window element). LIMITATIONS: Requires appropriate window focus.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Key to press (e.g., "Enter", "Escape", "Tab", "a", "ArrowUp") | |
| modifiers | No | Modifier keys to hold (e.g., ["ctrl", "shift"]) |