list_claude_sessions
List Claude Code session logs for a project directory, returning metadata by default and optional prompt/output snippets.
Instructions
List local native Claude Code session logs for a project directory. Returns metadata by default; prompt/output snippets are optional.
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_claude_sessions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Project directory whose Claude sessions should be listed. | /root |
| limit | No | ||
| query | No | Case-insensitive search over session id, title, transcript text, URL, and observed posture. Matching does not disclose snippets or URL values unless their include flags are enabled. | |
| scanLimit | No | Maximum recent log files to inspect for search or archive filtering. The response reports when this bound is reached. | |
| archiveState | No | Filter the MCP-local archive catalog: active (default), archived, or all. | active |
| includeSnippets | No | Include title and prompt/output snippets from local Claude logs. Defaults to false for metadata-only privacy. | |
| includeRemoteUrls | No | Include sensitive Remote Control URL values. Defaults to false; metadata reports only whether one exists. |