ass_set_times
Set the start, end, or duration of one subtitle line by index, using time strings or milliseconds, and reject an end before the start.
Instructions
Set the start, end and/or duration of one line.
Args:
index: 0-based line index.
doc_id: document id.
start_ms: new start — milliseconds or a time string such as
"0:00:01.50".
end_ms: new end (milliseconds or time string). Mutually exclusive with
duration_ms.
duration_ms: new duration; the end becomes start + duration_ms.
At least one of the three must be given. An end before the start is rejected with a ToolError naming both values.
Returns:
{"doc_id", "index", "before": {"start_ms", "end_ms", "duration_ms"}, "after": {...}, "changed": ["Start", ...], "applied"}
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": {
"index": "<index>"
},
"name": "ass_set_times"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | Yes | ||
| doc_id | No | ||
| end_ms | No | ||
| start_ms | No | ||
| duration_ms | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||