Press key in terminal
terminal_pressPress a named key or key combination (e.g., Enter, Ctrl+C) in a terminal session, optionally repeating it multiple times.
Instructions
Press a single named key or key combination. Examples of supported key values: Enter, Tab, Escape, Backspace, Space, ArrowUp / ArrowDown / ArrowLeft / ArrowRight, Home, End, PageUp, PageDown, Delete, Insert, F1..F12, Ctrl+C, Ctrl+D, Ctrl+L, Ctrl+A..Ctrl+Z, Shift+Tab, Alt+B, Ctrl+ArrowLeft, Ctrl+Shift+ArrowRight, etc. Same settle behavior as terminal_type.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Key spec like "Enter", "Ctrl+C", "Shift+Tab", "ArrowUp", "F5", "Ctrl+Shift+ArrowLeft". | |
| count | No | Press the key this many times in a row (e.g. ArrowUp x 5). Default 1. | |
| idleMs | No | ||
| maxWaitMs | No | ||
| sessionId | Yes | Numeric id of the session to target. Get one by calling terminal_create. Use terminal_list to enumerate currently-known ids. |