Read a Claude history session
get_sessionRetrieve messages from a specific chat session by its ID. Paginate through long conversations and control message length.
Instructions
Read the messages of a single conversation session by ID (from list_sessions or search_history). Paginate long sessions with offset/limit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max messages to return | |
| offset | No | Skip this many messages | |
| source | No | History source: "code" = Claude Code (~/.claude/projects), "cowork" = Claude Cowork local desktop sessions, "all" = both | all |
| maxChars | No | Truncate each message to this many characters | |
| sessionId | Yes |