Telnet Console: Connect
telnet_connectOpen the BrightScript debug console over TCP 8085 for a Roku device, enabling log capture and debugging. Idempotent: returns already connected if the socket is active.
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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No | Optional target device (IP or serial). Omit to use the focused tab. |