generate_svg_animation
Transforms a static SVG file into an animated SVG component based on a user-provided text description of the animation.
Instructions
Generate an SVG animation from a source file and prompt
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": {
"prompt": "<prompt>",
"svg_path": "<svg_path>",
"output_path": "<output_path>"
},
"name": "generate_svg_animation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Description of what animation to generate (e.g., 'Make the character wave their hand', 'Add bouncing motion to the ball') | |
| svg_path | Yes | Local file path to the source file to animate, must be the absolute path (e.g., '/Users/username/image.svg') | |
| output_path | Yes | Local file path to the output file, must be the absolute path (e.g., '/path/to/animated-svg.tsx') |