ass_move_lines
Move selected ASS subtitle event lines to a new position in the document order by specifying a zero-based target index; returns updated indices and supports snapshot-backed edits.
Instructions
Move the selected lines to another position in the line order.
target_index is the 0-based slot in the remaining lines (the
selection is removed first) where the moved block is inserted; it is clamped
to the list length, so a large value appends. Returns {"doc_id", "moved": [old 0-based indices], "target_index", "selection": [new 0-based indices], "count"}. Snapshot-backed.
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>",
"target_index": "<target_index>"
},
"name": "ass_move_lines"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_id | No | ||
| selection | Yes | ||
| target_index | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||