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
| Name | Required | Description | Default |
|---|---|---|---|
| save_path | No | File path to save the .cast file (optional — omit to get content inline) | |
| session_id | Yes | The session ID to export (works for open or recently closed sessions) |