rtt_read
Read non-destructive RTT log lines in clean Zephyr format, returning the newest entries by default or the oldest boot output when requested.
Instructions
Read RTT log lines (clean, parsed Zephyr format). Non-destructive — reading does not consume the buffer. Returns the NEWEST lines by default; oldest:true returns the start of the buffer. Note the buffer spans reflashes: its oldest lines may be from firmware you have since replaced. rtt_clear drops them.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "rtt_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | How many lines (default 50) | |
| oldest | No | Return the OLDEST lines instead of the newest — use this to see boot output |