Export markers to a file
export_markersExports sequence markers to CSV, JSON, or YouTube chapter files and optionally filters by text, type, color, or time range.
Instructions
Write the markers of a sequence (optionally filtered) to a file: "csv" (columns name,time,duration,comment,type,color,url,frame_target,timecode; times in seconds), "json" (the full marker list with the sequence it came from) or "youtube" (a chapter list of "0:00 Title" lines). CSV and JSON files can be read back with import_markers. Returns file_path, format, count and bytes. Fails with FILE_EXISTS if the file exists unless overwrite is true.
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": {
"file_path": "<file_path>"
},
"name": "export_markers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Only markers whose name or comment contains this text (plain substring, case-insensitive). | |
| type | No | Only markers of this type. One of "comment", "chapter", "segmentation", "web_link". | |
| color | No | Only markers of this colour. Colour index or name: 0 green, 1 red, 2 purple, 3 orange, 4 yellow, 5 white, 6 blue, 7 cyan. | |
| format | No | "csv", "json" or "youtube". Default: from the extension (.csv, .json, .txt = youtube); BAD_ARGS when it cannot be told. | |
| to_time | No | Only markers that start at or before this sequence time, in seconds. | |
| file_path | Yes | File to write. Absolute path; missing folders are created. | |
| from_time | No | Only markers that start at or after this sequence time, in seconds. | |
| overwrite | No | Replace the file if it already exists. Default false. | |
| intro_title | No | Title of that added 0:00 chapter. Default "Intro". | |
| sequence_id | No | Stable sequence id (from list_sequences). Omit to use the active sequence. | |
| sequence_name | No | Sequence name; used only when sequence_id is not given. | |
| ensure_zero_start | No | Add a chapter at 0:00 when no marker starts in the first second (YouTube ignores lists that do not start at 0:00). Default true. |