SCREENCAST-MCP / TOOLS / EDIT
Trim Video
trim
Cut a video down to one sub-clip by start + (end or duration). For several segments use clip; to combine with other edits use pipeline.
editwritesdestructivesince v0.2.0
00:00PARAMETERS
| Name | Type | Description |
|---|---|---|
input required | string | Path to the source video. |
start required | number | Start time in seconds. ≥ 0 |
end | number | End time in seconds. Use end OR duration. > 0 |
duration | number | Clip length in seconds. Use end OR duration. > 0 |
exact | boolean | Re-encode for a frame-exact cut with the removed content really gone (default true). false = fast stream copy that snaps to a keyframe and keeps hidden earlier frames; never use it to remove secrets. |
output | string | Optional output path. Defaults under SCREENCAST_HOME/edits. |
overwrite | boolean | Allow replacing an existing file at the output path (default false). |
00:05A MINIMAL CALL
trim { "input": "recording.mp4", "start": 0 }
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 | Description |
|---|---|---|
outputPath always | string | Path of the file written. |
00:15SEEN IN