session_get
Check a session's current status (idle, running, rescheduling, or terminated) and view token usage. Identifies when an agent is waiting for a tool confirmation.
Instructions
Get a session's current status and token usage.
Status is one of: idle (waiting for input — done with its turn), running
(working), rescheduling (retrying), terminated (ended on error). When idle
with a stop_reason of requires_action, the agent is waiting on a tool
confirmation — use session_respond.
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>"
},
"name": "session_get"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||