Add a marker to a source clip
add_item_markerAdds a marker to a project item's source clip, making it visible in the Source Monitor and on every timeline instance. Specify position in seconds from media start; returns the new marker's ID.
Instructions
Add a marker to a project item (a clip marker stored on the source clip, visible in the Source Monitor and on every timeline instance). time is in seconds from the media start. For markers on a sequence's timeline use add_marker. Returns the new marker with its marker_id.
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": {
"time": "<time>"
},
"name": "add_item_marker"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Link target; only for type "weblink". | |
| name | No | Marker name. | |
| time | Yes | Marker position, in seconds from the media start. | |
| type | No | Marker type: "comment" (default), "chapter", "segmentation" or "weblink" (needs url). | |
| comment | No | Marker comment. | |
| item_id | No | Stable project item id (from list_project_items). Preferred. | |
| duration | No | Marker duration, in seconds. Default 0 (a point marker). | |
| item_name | No | Item name; the first match in the project is used. | |
| item_path | No | Path in the Project panel, e.g. "Footage/Day 1/clip.mp4". | |
| color_index | No | Marker colour index 0-7 (0 green, 1 red, 2 purple, 3 orange, 4 yellow, 5 white, 6 blue, 7 cyan). | |
| frame_target | No | Frame target of the link; only for type "weblink". |