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.

FAQ

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.
Required: session_id.
It returns id, title, messages, message_count.
Yes. It acts as you on claude.ai: on your own Chrome it reuses your session, and on a Reduck-hosted browser it loads the claude.ai cookies saved by the Reduck extension.
It only reads. It looks things up on claude.ai and changes nothing there.
Ask an AI agent connected to Reduck to run reduck/claude.ai/get_code_session, or run it from a terminal with the Reduck CLI: npx @reduck-ai/cli@latest run --script reduck/claude.ai/get_code_session
It is part of Reduck's official curated catalogue.

Start building not clicking