Serial Read
serial_readReads buffered lines from a serial monitor session, returns a cursor for incremental reads, and flags data dropped between reads.
Instructions
Read buffered lines from a serial monitor session.
Returns {lines, new_cursor, eof, dropped}. dropped counts lines that aged out of
the 10k-line ring buffer between reads, so a value > 0 means you missed data.
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": {
"session_id": "<session_id>"
},
"name": "serial_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_lines | No | Cap on the lines returned. | |
| session_id | Yes | Id from `serial_open`. | |
| since_cursor | No | Omit to get everything since your last `serial_read` (an advancing cursor). Pass `since_cursor=N` to re-read from a specific point, or `since_cursor=0` to read from the start of the in-memory buffer. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||