SCREENCAST-MCP / TOOLS / CAPTURE
Save Replay
save_replay
Save the last N seconds of a replay buffer (start_recording replayBufferSec) to an mp4; the buffer keeps running.
capturewritesdestructivesince v0.45.0
00:00PARAMETERS
| Name | Type | Description |
|---|---|---|
sessionId required | string | Session id of a replay buffer. |
lastSec | number | Seconds back from now (default and max: the buffer length). > 0, ≤ 3600 |
output | string | Output .mp4 path (default under SCREENCAST_HOME/recordings). |
overwrite | boolean | Allow replacing an existing file at the output path (default false). |
reencode | boolean | Frame-exact re-encode. Default: instant stream copy that may hide up to 2 s of earlier frames. |
00:05A MINIMAL CALL
save_replay { "sessionId": "rec-20260101-120000-ab12" }
The required arguments only, with placeholder values. Everything else takes its default.
00:10WHAT COMES BACK
Structured content (structuredContent), alongside a text summary:
| Field | Type |
|---|---|
sessionId always | string |
outputPath always | string |
durationSec always | number |