get_session
Read a Claude Code session's current state, pending requests, tool-call counts, and git status so you can inspect progress or decide whether to reply, wait, or stop.
Instructions
Read one session. phase is working, needs-input (answer what pending lists), done (reply is the final text), interrupted (the turn stopped with no final reply), failed, stopped, idle, or unknown. Also returns the title, the prompt, tool-call counts, pending requests, and git (branch, head, ahead, dirty, pushed) read at call time. To wait for a change, call wait_session. detail full adds the turn list, every step, the run record, and the session card.
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": {
"sessionId": "<sessionId>"
},
"name": "get_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| detail | No | ||
| sessionId | Yes |