Skip to main content
Glama

terminal_export

Export a terminal session recording as an asciicast v2 (.cast) file that plays in asciinema-player or asciinema.org, capturing every type, send_key, and screenshot with timing.

Instructions

Export the session recording as an asciicast v2 (.cast) file, playable in asciinema-player or asciinema.org. Recording happens automatically — every type, send_key, and screenshot is captured with timing.

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": {
      "session_id": "<session_id>"
    },
    "name": "terminal_export"
  }
}

Input Schema

NameRequiredDescriptionDefault
save_pathNoFile path to save the .cast file (optional — omit to get content inline)
session_idYesThe session ID to export (works for open or recently closed sessions)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the disclosure burden and does notable work: it identifies the output format, compatibility targets, and that capture is passive and timing-preserving. It stops short of stating there are no side effects, what happens with very large sessions, or whether inline output can be truncated.

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?

Two sentences, front-loaded with the output artifact and its consumers, followed by the one behavioral fact an agent needs. No filler or restatement of the tool name.

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 two-parameter read-style tool with no output schema and no annotations, the description covers format, capture scope, and the absence of a recording setup step. Only the shape of the inline return value when save_path is omitted is left implicit, which is a minor gap.

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 coverage is 100% and both parameters are already fully documented in the schema, including the inline-vs-file behavior of save_path. The description adds no additional parameter meaning, so the baseline of 3 applies.

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

Purpose5/5

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

States a specific verb (export), resource (session recording), and output format (asciicast v2 .cast), which no sibling tool produces. Naming type, send_key, and screenshot as captured inputs implicitly distinguishes this export from those action-level siblings.

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?

The line 'Recording happens automatically' usefully tells the agent no start/stop call is needed before exporting, which is real usage guidance. However, it never states when to prefer this over terminal_trace or another inspection sibling, nor any conditions such as session age limits beyond the schema note.

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