App Logo
claude.ai

Get Claude Code session

Full transcript of one Claude Code web session by id, oldest→newest. The transcript is virtualized — only the messages near the viewport exist in the DOM — so this walks it from the top and stops on the count the list itself declares (aria-setsize), rather than guessing when it has seen everything; a read it cannot complete throws instead of returning a partial transcript that would look whole. Each message carries its own id, who sent it (human, assistant, or neither for a system card like "Context cleared"), and the readable text of what the page shows for that turn — prose plus the tool cards' own summaries, in reading order. No timestamp: the page only holds an absolute one in a per-message hover tooltip.

Input

session_id required

The session id as returned by list_code_sessions (also the /code/<id> URL segment), e.g. "session_01ESfPiAadbkS23eBAtynZTL".

Output

id required
title required

The session's title as shown in the title bar.

messages required
message_count required

How many messages the transcript declares (aria-setsize). Always equals messages.length: a read that could not complete throws rather than returning.

Start building not clicking