agentlens_replay
Replay a past session as a structured, human-readable timeline to review agent decisions, failures, and cost accumulation. Filter by steps or event types for focused post-mortem analysis.
Instructions
Replay a past session as a structured, human-readable timeline.
When to use: To review what happened in a previous session — understand failures, decision patterns, timing, or cost accumulation. Great for debugging or post-mortem analysis.
What it returns: A session header (agent, status, duration, cost, event counts) followed by numbered, timestamped steps with event type icons and context annotations.
Parameters:
sessionId (required): The session to replay
fromStep/toStep: Replay a specific step range
eventTypes: Comma-separated filter (e.g., "llm_call,tool_call")
summaryOnly: Set true to get just the summary header (fast for large sessions)
Example: agentlens_replay({ sessionId: "ses_abc123", summaryOnly: true }) → returns session summary without steps.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sessionId | Yes | Session ID to replay | |
| fromStep | No | Start step number (0-based) | |
| toStep | No | End step number (inclusive) | |
| eventTypes | No | Comma-separated event types to filter (e.g., "llm_call,tool_call") | |
| summaryOnly | No | Return only the summary header (no steps). Default: false |