Set segments
set_segmentsLoads an exact list of segments for a media file in one step and opens it in LosslessCut, backing up any existing project file before writing the new project.
Instructions
Loads an exact list of segments for a media file in one step and opens it in LosslessCut. It writes the LosslessCut project file next to the media ("-proj.llc"); an existing project file is first renamed to a .bak backup. The currently open file is closed first. Prefer this over add_segment for precise cuts.
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": {
"path": "<path>",
"segments": "<segments>"
},
"name": "set_segments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path of a file the user gave you | |
| segments | Yes |