list_sessions
Use this when the user wants to browse or find an older session, for example 'what did we decide in Cursor last week'. Lists recent session logs, each with a summary, decisions and next steps, optionally filtered by the tool they came from. To simply resume the most recent session, use get_latest_session instead.
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 | Number of sessions to return, 1-50, default 10. Out-of-range values are clamped rather than rejected. | |
| source | No | Filter by session source: claude_code, claude_desktop, cursor, chatgpt, gemini, copilot, windsurf, codex, mistral, deepseek, custom, or manual. |