terminal_input
Send an ordered batch of terminal input actions—text, keys, mouse, or waits—and receive the updated screen with completion details. Ideal for automating interactive terminal sessions.
Instructions
Send an ordered batch of actions and return its styled screen, actionsCompleted, and inputSent. text sends exact Unicode; paste normalizes newlines and honors bracketed-paste mode. key sends named keys or printable ASCII with supported modifiers. mouse clicks/wheels require application reporting and cell coordinates; disabled reporting, pixel mode, and unsupported X10 actions fail. focus is a no-op unless reporting is enabled. raw sends bytes. wait delays with durationMs or observes with timing options. Example actions: [{type:"key",key:"F2"},{type:"wait"},{type:"key",key:"Down"}]. Modes are checked per action; response waits are explicit. A settling error does not undo input; inspect inputSent, actionsCompleted, and zero-based failedActionIndex before retrying.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| actions | Yes | ||
| settleMs | No | ||
| sessionId | Yes | ||
| settleTimeoutMs | No |