svg_animate
Animate existing SVG objects directly in Inkscape using SMIL/CSS. Apply presets, keyframes, transforms, or motion paths to add dynamic movement to static graphics.
Instructions
SMIL and CSS animation applied to objects ALREADY IN THE DOCUMENT, by id. operation: list_presets | apply_preset | animate | transform | motion | color | css. 12 presets, 7 easing curves, motion along any path in the document. Inkscape has no animation action of any kind.
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": "svg_animate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cx | No | Centre X. | |
| cy | No | Centre Y. | |
| to | No | End value. | |
| dur | No | Duration in seconds. | |
| from | No | Start value. | |
| begin | No | When the animation starts. | |
| easing | No | Easing curve name. | |
| freeze | No | Hold the final value instead of resetting. | |
| path_d | No | Inline path data to use as a motion path. | |
| preset | No | Named animation preset. | |
| repeat | No | Repeat count. 0 means indefinite. | |
| values | No | Semicolon-separated keyframe values. | |
| path_id | No | id of a <path> in the document to use as a motion path. | |
| attribute | No | SVG attribute to animate. | |
| css_class | No | Class name for the injected CSS animation. | |
| keyframes | No | CSS @keyframes body. | |
| operation | No | Which operation to run. See the tool summary for valid values. | |
| input_path | No | Source file to read. | |
| object_ids | No | SVG element ids to act on. Explicit ids always win over select_all. | |
| output_path | No | File to write. Overwritten if it exists. | |
| transform_type | No | translate | scale | rotate | skewX | skewY. | |
| rotate_along_path | No | Turn the object to follow the motion path. |