Type into terminal
terminal_typeTypes literal characters into a terminal session as human-like keystrokes and sends Enter for embedded newlines, then waits briefly for the buffer to settle; use terminal_wait for slow commands.
Instructions
Type literal characters into the terminal as if a human were pressing keys. Embedded \n is normalized to \r so "git push\n" actually submits. Always waits for the buffer to settle (or to time out) before returning. The wait is capped at 10s; for anything slower (builds, installs, test runs) follow up with terminal_wait, which blocks until the command actually finishes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Characters to type. Embedded \n becomes Enter. | |
| paste | No | Deliver the text as a single paste instead of keystrokes. Use it for multi-line text going into an editor, a REPL or a shell prompt: programs that support bracketed paste insert it verbatim (no auto-indent, lines are not run one by one), and nothing is submitted until you press Enter. Programs that do not support it receive the plain characters. Default false. | |
| idleMs | No | Settle window: silence this long after the last byte counts as settled. Default 200. | |
| maxWaitMs | No | Overall cap on the settle wait. Default 5000, clamped to 10000. Use terminal_wait for longer. | |
| sessionId | Yes | Numeric id of the session to target. Get one by calling terminal_create. Use terminal_list to enumerate currently-known ids. |