list_sessions
Retrieve recent Claude Code sessions for a project by specifying the project name and optional time range up to 7 days.
Instructions
List sessions for a specific project
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": {
"project_name": "<project_name>"
},
"name": "list_sessions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_name | Yes | Encoded project directory name from .claude/projects/ (uses dashes instead of slashes) | |
| days_back | No | How many days back to search (max 7) |