ass_add_lines
Append multiple ASS subtitle event lines in a single call, with optional 0-based insertion indices and support for milliseconds or time strings.
Instructions
Append several lines in one call.
lines is a list of dicts using the :func:ass_add_line keys
(start_ms/end_ms/text/style/actor/effect/layer/
comment/margin_l/margin_r/margin_v) plus an optional
index — the 0-based position the new line is inserted at. Insertion
positions refer to the line list as it is being built (the previous inserts
of this same call are already in place); lines without index go to the
end. All times accept milliseconds or time strings.
Returns {"doc_id", "indices": [<0-based index per input dict>], "count", "lines": [<line dict>, ...]}.
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": {
"lines": "<lines>"
},
"name": "ass_add_lines"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | Yes | ||
| doc_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||