Get Telnet / BrightScript Console Log
get_telnet_logRetrieve BrightScript debug log lines from the Roku telnet console. Supports incremental polling with a cursor and configurable line limits, returning buffer status and connection state.
Instructions
Read lines from the BrightScript debug console (port 8085) buffer that Dev Studio holds in memory. Returns { lines, cursor, totalLines, connected }. Pass afterCursor (the cursor from a previous call) to get only new lines — use this for polling. maxLines caps the response (default 500, max 2000). Lines only accumulate while the console is connected: if connected is false call telnet_connect first, then re-run this tool. The Roku 8085 telnet socket only allows one client at a time — telnet_connect will close any existing telnet session held by another tool/IDE before attaching. Read-only — it drains the buffer Dev Studio already holds and never touches the device.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No | Optional target device (IP or serial). | |
| maxLines | No | Max lines to return (default 500, max 2000). | |
| afterCursor | No | Cursor returned by a previous call. Omit (or pass 0) for the full buffer. |