debug_session
Subscribe to or unsubscribe from live session traces to inspect execution state and trace failures in real time.
Instructions
[Arch Debug] Arch connects to live sessions, traces failures, and inspects execution state. Subscribe to or unsubscribe from an existing session's trace events. Use action='subscribe' to start receiving traces (buffered + live), or action='unsubscribe' to stop. Use debug_list_active_sessions to find session IDs.
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": {
"action": "<action>",
"sessionId": "<sessionId>"
},
"name": "debug_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Action to perform: 'subscribe' to start receiving traces, 'unsubscribe' to stop | |
| sessionId | Yes | The session ID to subscribe to or unsubscribe from (get from debug_list_active_sessions) |