serial_write
Execute shell commands on an active serial session for embedded device management. Optionally clear the buffer before collecting output to capture fresh results.
Instructions
Send a command to a serial shell session.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clear | No | Buffer clear flag: 1 (default) = clear buffer before collecting, 0 = append to buffer | |
| command | Yes | The command to send to the shell | |
| session_id | Yes | The session ID returned by serial_open |