Skip to main content

Module transcript

Module transcript 

Source
Expand description

Transcript extraction from Claude Code conversation logs

Claude Code stores conversation logs in ~/.claude/projects//*.jsonl Each line is a message with type (user/assistant), timestamp, and content. This module extracts and formats these into readable transcripts.

Structs§

StructuredContent
Structured content from API response
ToolCall
A tool call extracted from the transcript
ToolResult
A tool result extracted from the transcript
Transcript
Full transcript of a session
TranscriptMessage
A single message in the conversation
Usage
Token usage stats

Enums§

MessageContent
Content of a message (can be text or tool use)

Functions§

export_transcript_json
Export transcript as JSON
find_claude_project_dir
Find Claude Code project directory
find_transcripts_in_range
Find transcript files that overlap with a time range
list_session_files
List available session files in a project directory
list_transcripts
List available transcripts for a project
parse_transcript
Parse a JSONL file into a transcript
print_full_transcript
Print the full transcript with all messages and tool calls
print_transcript_summary
Print a transcript summary
view_transcript
View a specific transcript or the latest one