Telnet Console: Connect
telnet_connectConnect to a Roku device's BrightScript debug console (TCP 8085) to start capturing debug logs. Returns already-connected status if the console is already attached.
Instructions
Open the BrightScript debug console (TCP 8085) for the targeted device, exactly as if the user had clicked the Connect button on the Telnet Console tab. Idempotent: returns { connected: true, already: true } when already attached. Lines do not accumulate until this is called. After it returns successfully, poll the buffer with get_telnet_log({ afterCursor }). Roku's 8085 socket is single-client: connecting here will displace another tool (e.g. an IDE telnet session) that may currently hold it. Opening the socket is a side effect (displaces other clients), so this is not read-only; idempotent — already-attached returns { already: true }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No | Optional target device (IP or serial). Omit to use the focused tab. |