Send input to a pane
send_inputSend text to a live terminal pane and optionally submit it with a separate Enter keystroke, enabling reliable input to TUI applications.
Instructions
Type text into a live shell. With submit:true the app writes your text, then a SEPARATE bare Enter a beat later — the reliable way to submit a line to a TUI agent (a trailing "\n" in one write is read as a bracketed paste, not Enter). Without submit, include a trailing newline yourself to run a shell command. DANGEROUS: this executes whatever you send in a real terminal. Triple-gated and never on by default — requires (1) the app's "Allow agent control → input" toggle, (2) HYPERPANES_ALLOW_INPUT=1 on this bridge, and (3) confirm=true on every call. See README "send_input safety model".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Exact bytes to write. With submit:true, pass the line WITHOUT a trailing newline. | |
| owner | No | Lock owner, if the pane was locked via lock_pane — required to write a locked pane. | |
| paneId | Yes | ||
| submit | No | Write a bare Enter as a separate keystroke after the text (submits a TUI line cleanly). | |
| confirm | No | Must be true — explicit per-call confirmation. | |
| submitDelayMs | No | Beat between the text and the Enter when submit:true (default ~40ms; raise for slow TUIs). |