list_sessions
List Claude Code sessions on your machine, filtering by recency, live status, or project.
Instructions
List Claude Code sessions discovered on this machine — recent ones and which are currently live (running in a tmux pane). Use scope='live' to see only sessions you can reach right now, or pass a project filter.
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 |
|---|---|---|---|
| scope | No | recent = sorted by last activity (default), live = only running sessions, all = everything | |
| project | No | filter by project name or path substring | |
| limit | No |