compile_and_save_project
Compiles accumulated frames, rigs, and layers into a final .stykanimate or JSON file and writes it to the specified local output path.
Instructions
Bundles the accumulated project state, frames, rigs, and layers into a final .stykanimate or valid project JSON string, writing it cleanly to a local path specified by the user.
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": {
"outputPath": "<outputPath>"
},
"name": "compile_and_save_project"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Output packaging format: "json" (standard JSON), "styk-container" (binary v1 container), or "auto" (detected from extension) | |
| pretty | No | Whether to pretty-print JSON files with 2-space indentation (default: true) | |
| outputPath | Yes | Destination file path (e.g. "./output/my_animation.stykanimate" or "./scene.styk") |