MCP dap_thread_select

Description

Set the session's default BrightScript debug thread.

Speaks Roku's socket-based BrightScript debug protocol on TCP 8081 -- NOT the Microsoft Debug Adapter Protocol.

IMPORTANT: this is server-side session state, not a device command -- the protocol has no thread-switch command at all. Thread index is a PARAMETER of per-thread commands (stacktrace, variables). This tool just changes which thread every thread-scoped tool call uses when its own threadId is omitted.

The selection is temporary: it is cleared automatically the next time the app stops, because the device's own primary-thread index has been observed to change between stops. Re-select after every stop if you need a non-primary thread as the default again.

  • threadId (string, required): Namespaced thread id from dap_threads (e.g. brs:1).
  • sessionId (string, optional): Session id returned by debug_session_create.
    Uses the active session when omitted.

See also

Parameters

additionalProperties: false

NameTypeRequiredValues
threadIdstringYes
sessionIdstringNo

threadId

Namespaced thread id, e.g. brs:1

sessionId

Session id returned by debug_session_create


Did this page help you?