ass_select
Update the active selection of Aegisub/ASS subtitle event lines using ranges, indices, styles, or text matches. Apply set, add, remove, or toggle modes to target lines for editing or QC.
Instructions
Update the session selection used by "selection".
Args:
spec: any selection spelling accepted by base.resolve_indices —
"all"/None, "0-4,7", 5, [0, 2],
{"style": "Default"}, {"text_contains": "hi"}, ...
mode: "set" (replace), "add", "remove" or "toggle".
Returns {"doc_id", "mode", "selection": [<0-based indices>], "count"}.
Line 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": {
"spec": "<spec>"
},
"name": "ass_select"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | set | |
| spec | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||