ass_svg_to_drawing
Convert SVG path data or SVG files into ASS drawing text for Aegisub subtitles, with scaling, rounding, and viewBox offset control.
Instructions
Convert SVG path data (or a whole .svg file) into ASS drawing text.
Either d (one or more d attributes, space separated) or svg_path
(the file is read, its viewBox becomes the origin shift and every
<path d="..."> is converted). view_box given as "x y w h" or
[x, y, w, h] shifts the paths so the box origin becomes (0, 0).
scale multiplies every coordinate; round_to is the number of decimal
places kept when serialising (0 = integer coordinates).
SVG and ASS both grow y downwards, so nothing is flipped. Supported
commands: M L H V C S Q T A Z (relative forms too); quadratics are
promoted to cubics and arcs to cubic segments.
Returns {drawing, bbox, size, center, path_count, view_box, scale, round_to, source}.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "ass_svg_to_drawing"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| d | No | ||
| scale | No | ||
| round_to | No | ||
| svg_path | No | ||
| view_box | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||