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.
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": {
"sessionId": "<sessionId>"
},
"name": "get_session"
}
}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 |