serial_exec
Send a command to a serial shell session and retrieve its output with configurable delay and buffer handling.
Instructions
Send a command to a serial shell session and wait for the output. Combines write + delay + read in one call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clear | No | Buffer clear flag: 1 (default) = clear buffer before collecting, 0 = append to buffer | |
| delay | No | Wait time in milliseconds before reading output (default: 1000) | |
| command | Yes | The command to send to the shell | |
| session_id | Yes | The session ID returned by serial_open |