Tool Usage Analysis
No Data Loaded
Upload a Claude Code transcript or load sample data to see tool usage visualization
About This Tool
Purpose
This tool analyzes Claude Code transcripts and visualizes which tools were used and how frequently. It helps developers understand their coding patterns, identify frequently used tools, and gain insights into their workflow efficiency.
Features
- Parse JSONL transcript files to extract tool usage data
- Interactive horizontal bar chart with hover tooltips
- Responsive SVG visualization that scales perfectly to any screen size
- Statistics summary showing total calls, unique tools, and most used tool
- Sample data included for immediate exploration
- Dark theme optimized for developer workflows
- Tool usage sorted by frequency with percentage calculations
Web Research Integration
Source: MDN SVG Tutorial
Techniques Applied:
viewBoxattribute for responsive scaling - The chart usesviewBox="0 0 1000 600"withpreserveAspectRatioto create a perfectly scalable visualization that maintains proportions across all screen sizes- SVG
rectelements for bar charts - Each tool's usage is represented by a dynamically sized rectangle element with smooth transitions and hover effects - SVG
textelements with positioning - Labels, values, and percentages are positioned using SVG text elements with precise x/y coordinates for optimal readability - CSS styling of SVG elements - Applied CSS transitions, hover effects, and theming to SVG elements for a polished, interactive experience
Usage
- Click "Choose File" and select a Claude Code transcript file (JSONL format), or click "Load Sample Data" to see an example
- The tool will parse the transcript and extract all tool calls from assistant messages
- View the statistics summary showing total calls, unique tools, and the most frequently used tool
- Examine the horizontal bar chart showing each tool's usage frequency
- Hover over any bar to see detailed information including tool name, count, and percentage
- The chart automatically scales to fit your screen while maintaining perfect proportions
Technical Details
The tool uses the File API to read transcript files, parses JSONL line-by-line, and extracts tool names from message content blocks. The SVG chart is dynamically generated using DOM manipulation, with each bar's width calculated proportionally to the maximum usage count. The viewBox technique ensures the chart remains crisp and perfectly scaled on any display resolution.