Skip to main content
Glama

Export Standalone HTML Replay

export_session_replay

Redact secrets and PII from an AI coding session, then export it as a single, zero-dependency, XSS-safe interactive HTML replay for safe sharing and review.

Instructions

Scrub secrets & PII and export an AI coding session as a single, zero-dependency, XSS-safe interactive HTML flight replay file.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "sessionIdOrPath": "<sessionIdOrPath>"
    },
    "name": "export_session_replay"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleNoOptional custom title for the exported HTML replay
outputPathNoOptional output .html path (defaults to <dataDir>/replays/<slug>-replay.html)
includeSystemNoInclude system/checkpoint events (default false)
sessionIdOrPathYesSession ID (or unique prefix) or path to a .jsonl transcript file

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden, and it discloses meaningful traits: secrets and PII are scrubbed, the output is self-contained with zero dependencies, and the HTML is XSS-safe. Gaps remain around overwrite behavior, error cases for an unresolved session, and whether scrubbing is lossy, but the safety-relevant surface is covered.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single dense sentence with the most decision-relevant fact — secrets and PII scrubbing — front-loaded, followed by the output characteristics. No filler and nothing that restates the title verbatim.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a four-parameter tool with no annotations and no output schema, the description successfully describes the return artifact (an HTML file), which is the key unknown. It could say more about where confirmation or the file path comes back and what happens on an invalid session reference.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so every parameter (sessionIdOrPath, title, outputPath, includeSystem) is already documented in the schema with defaults. The description adds no format hints or semantics beyond that, which is the expected baseline when the schema does the work.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (export) and resource (an AI coding session) plus the exact artifact produced: a single, zero-dependency, XSS-safe interactive HTML replay. It does not, however, distinguish itself from the sibling app_export_replay, which appears to overlap in intent.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied by what the tool produces — an agent can infer it is the right call when a shareable HTML artifact is wanted. There is no explicit when-to-use, no exclusions, and no pointer to app_export_replay or inspect_agent_session for the cases this tool does not cover.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.