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.
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. |