Cut a video by its script
Cuts lines, words, filler words or long pauses out of a video and its captions, or keeps only selected lines. The original recording is never changed, and spoken lines keep their recorded order.
| MCP tool | cut_video |
| API | POST /api/v1/videos/{clipId}/cut |
| Credits | Free |
When to use it
- Call after
get_script returns status: "ready" to clean up a talk or extract highlights into a shorter version.
- Put all cuts for one pass into a single call using the script's current
version.
- To change caption wording without removing spoken audio, use
edit_captions instead.
Parameters
| Name | Type | Required | What it is |
|---|
clipId | string | Yes | The clipId from open_video, or a clip ID from list_clips. |
version | integer | Yes | The version the script was read at. |
remove | list | No | What to cut out. |
remove[].line | integer | Yes | A script line. |
remove[].toLine | integer | No | The last line, for several lines in a row. |
remove[].text | string | No | Only these words of the line, copied from the script. They must be there once. |
keep | list | No | Keeps only this and cuts the rest, for highlights or a set length. remove still applies within it. |
keep[].line | integer | Yes | A script line. |
keep[].toLine | integer | No | The last line, for several lines in a row. |
keep[].text | string | No | Only these words of the line, copied from the script. They must be there once. |
removeFillers | boolean | No | Takes out "um", "uh", "er", "ah", "erm" and "hmm". Cut other filler words with remove. |
shortenPauses | boolean | No | Shortens long silences between words. |
Call it from an AI agent
{
"name": "cut_video",
"arguments": {
"clipId": "f8669b08",
"version": 0,
"remove": [
{
"line": 5,
"toLine": 7
},
{
"line": 9,
"text": "you know"
}
],
"removeFillers": true,
"shortenPauses": true
}
}
Call it from your code
curl -X POST https://pogclip.com/api/v1/videos/f8669b08/cut \
-H "Authorization: Bearer $POGCLIP_API_KEY" \
-H "Content-Type: application/json" \
-d '{"version": 0, "remove": [{"line": 5, "toLine": 7}, {"line": 9, "text": "you know"}], "removeFillers": true, "shortenPauses": true}'
What you get back
{
"clipId": "f8669b08",
"name": "Why I started filming again",
"pageUrl": "https://pogclip.com/dashboard/projects/8e4ed643?clip=f8669b08",
"downloadPageUrl": "https://pogclip.com/dashboard/projects/8e4ed643?download=f8669b08",
"status": "ready",
"version": 1,
"durationSeconds": 194.5,
"script": [
{
"line": 1,
"start": 0.1,
"end": 2,
"text": "Okay, here's the deal."
},
{
"line": 2,
"start": 2.3,
"end": 8.1,
"text": "I want to show you what I got wrong."
}
],
"previousVersion": 0,
"secondsBefore": 510,
"secondsAfter": 194.5,
"next": "Read the script through once more: it should still make sense. Version 0 can be put back. Export the video with its clipId when it is right; exports use no credits."
}
The example above shows only the first two lines of the updated script.
version: the new version after the cut; use it for any follow-up edits.
previousVersion: pass this to restore_video to undo the cut.
script: the new numbered script as the video plays now; read it through to confirm every transition makes sense.
secondsBefore and secondsAfter: show how much time the cut removed.
next: confirms whether anything changed and when the video is ready for export_clips.
Errors
| Code | What it means |
|---|
video_changed | The video has a newer version than the one you sent. Read the script again and use its version. |
invalid_request | A field is missing or wrong, or the video has no transcript yet. |
not_found | There is no video with this ID on the account, or it has expired. |
unauthorized | The API key or sign-in is missing, wrong or revoked. |
rate_limited | More than 60 requests in a minute. Wait for retryAfterSeconds. |