Serial Write
serial_writeTransmit payload bytes to an active serial session, supporting encoding and line endings, with safety preflight enforced unless explicitly bypassed.
Instructions
Write bytes to an open serial session. Safety preflight is enforced unless explicitly skipped.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Payload to send. | |
| encoding | No | Payload encoding. Default: utf8. | |
| sessionId | Yes | ||
| lineEnding | No | Optional line ending append. | |
| safetyContext | No | ||
| unsafeSkipPreflight | No | If true, bypasses safety_preflight checks. Use only with explicit user acceptance. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| raw | No | ||
| data | No | ||
| note | No | ||
| error | No | ||
| stage | No | ||
| status | No | ||
| command | No | ||
| rawTail | No | ||
| errorCode | No | ||
| retryable | No | ||
| nextActions | No | ||
| reasonCodes | No |