Load a past Claude Code conversation
load_sessionLoad a past conversation's context into the current session using a session ID or free-text query. Retrieve compact Markdown with optional turn range and token limit.
Instructions
Load the context of a past Claude Code conversation as compact Markdown (human turns, collapsed tool-call summaries, and assistant replies — tool outputs are elided). Provide either a session id (from list_sessions/search_sessions) or a free-text query to find it. Use this to pull a previous conversation's context into the current session. For a very large session, either pass turns to load a specific window (turn numbers come from session_outline), or prefer session_outline / search_in_session.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Session id (uuid) from list_sessions/search_sessions. | |
| query | No | Free-text to locate the session if you don't have an id. | |
| format | No | compact (default): elide tool details. full: include brief tool inputs. | |
| turns | No | Load only a turn range, 1-based inclusive: "300-340", "300-", "-50", or "300". Turn numbers come from session_outline. | |
| maxTokens | No | Approx token budget for the returned transcript (default 16000, capped ~18000). | |
| includeThinking | No | Include a short trace of assistant thinking (default false). |