Read Serial Snapshot
read_serial_snapshotCapture serial port output for a bounded duration to view Arduino debug messages or sensor readings.
Instructions
Capture serial output for a bounded duration from a given port.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"port": "<port>"
},
"name": "read_serial_snapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | Yes | Serial port path, e.g. COM6 or /dev/ttyACM0. | |
| baudRate | No | Baud rate. Default: 9600. | |
| durationMs | No | Capture duration in ms. |
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 |