Count sequence markers
count_markersCounts sequence markers without listing them, optionally filtered by type, color, time range, or text; returns totals, breakdowns, span durations, and first/last times.
Instructions
Count the markers of a sequence without listing them, optionally filtered by type, colour, time range and text. Returns total, matched, by_type, by_color, with_duration (span markers), first_time and last_time in seconds.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "count_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. | |
| to_time | No | Only markers that start at or before this sequence time, in seconds. | |
| from_time | No | Only markers that start at or after this sequence time, in seconds. | |
| 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. |