run
Execute a command in an active subprocess or REPL session and read its output until the session pauses, simplifying interactive tool control.
Instructions
Convenience: send a command then read until output is idle.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | ||
| idle_ms | No | Stop after no new output for this long (default 200ms). | |
| max_bytes | No | Max bytes returned (default 1MB). | |
| strip_nul | No | Strip NUL bytes from returned output. | |
| until_nul | No | Stop after reading a NUL byte (useful for r2/rizin -0 mode). | |
| session_id | Yes | ||
| strip_ansi | No | ||
| timeout_ms | No | Hard timeout (default 5000ms). | |
| until_regex | No | Stop after regex matches output (regex is applied to raw bytes, utf-8 encoded). | |
| append_newline | No | Defaults true. |