spine_build_animation_from_json
Analyze a Spine JSON file, generate an animated version based on a user goal, import into .spine, optionally pack images, export, and open.
Instructions
One-step JSON animation pipeline: analyze source JSON, generate animated copy, import to .spine, optionally pack images, export, and open. Use for Spine JSON plus images. Not for .spine sources, mesh, IK, weights, or UI automation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| userGoal | Yes | Natural-language goal used to select basic animation timelines. | |
| imagesDir | No | Optional folder containing images referenced by the JSON. When provided, it is copied to outputDir/images and packed. | |
| outputDir | Yes | Directory where animated JSON, .spine project, dist export, atlas/png pack, and manifest are written. | |
| overwrite | No | When false, stop if outputDir already exists. When true, overwrite generated files inside outputDir without deleting files outside it. | |
| exportMode | No | Deprecated alias for exportSettingsPath. Must be a Spine export settings .json file path, not "json" or "json+pack". | |
| projectName | Yes | Project file base name to generate inside outputDir, without path separators. | |
| knowledgeDir | No | Directory containing learned knowledge files. Defaults to G:\spine-mcp\knowledge. Missing knowledge falls back to built-in defaults. | G:\spine-mcp\knowledge |
| animationName | No | Optional animation name. Defaults to "generated_loop". | |
| characterType | No | Optional character hint such as "cat", "mascot", "logo", or "generic". | |
| openAfterBuild | No | When true, open the generated .spine project after import/export without waiting for Spine to exit. | |
| sourceJsonPath | Yes | Source Spine JSON file to analyze and animate. It is preserved unchanged. | |
| exportSettingsPath | No | Path to a Spine export settings .json file used with -e. If omitted, tools that can build a .spine project skip the final export step. |