list_sessions
List local Claude Code sessions to see each session's id, title, project, status, branch, and last activity, plus pending request counts, so you can pick which one to inspect or continue.
Instructions
List local Claude Code sessions, newest first: id, title, project, status (working, needs-you, idle, not-running, failed, stopped, unknown), branch, last activity, and the number of pending requests. limit defaults to 10. detail full returns every recorded field per row (cwd, run state, process, subagents, the continue command) and defaults to 50 rows.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_sessions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| detail | No | ||
| project | No |