ass_duplicate_lines
Duplicate selected ASS subtitle lines with optional time offset and before/after insertion, preserving all fields, to create repeated or shifted events.
Instructions
Duplicate the selected lines.
Args:
selection: selection spelling; None = all lines.
offset_ms: shift the copies in time by this many ms.
insert_after: put each copy right after (True) or right before
(False) its source.
Copies keep every field of the source (style, actor, effect, layer, margins,
comment flag, tags). Returns {"doc_id", "indices": [<0-based index of each copy>], "count", "lines": [...]}. Snapshot-backed. Indices are
0-based.
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": {
"selection": "<selection>"
},
"name": "ass_duplicate_lines"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_id | No | ||
| offset_ms | No | ||
| selection | Yes | ||
| insert_after | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||