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