select_thread
Switch debugging context to a specific thread by ID, enabling inspection of its stack and local variables.
Instructions
Switch to a specific thread (GDB 'thread N').
Use list_threads to see thread IDs. After switching, stack and local variable commands operate on the selected thread.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"session_id": "<session_id>",
"thread_id": "<thread_id>"
},
"name": "select_thread"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| thread_id | Yes | ||
| session_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |