unity_animation
Author Animator-free animation clips: create .anim assets, add float curves, attach Animation components, and play in play mode.
Instructions
Author Animator-free animation clips: create a .anim asset, add float curves (position/scale/rotation), attach an Animation component to an object, and play it in play mode. (Unity editor offline right now: schemas are cached; calls will fail until it reconnects)
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": "unity_animation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clip | No | Assets/Anim/Spin.anim | |
| keys | No | [[time,value],...] | |
| loop | No | ||
| name | No | ||
| path | No | GameObject path for attach/play/stop | |
| action | No | ||
| autoPlay | No | ||
| property | No | localPosition.x / localScale / rotation.y / m_LocalPosition.z | |
| frameRate | No | ||
| targetPath | No | relative path of the animated child inside the clip, empty for the root |