set_frame_duration
Adjust a single frame's duration in milliseconds for precise animation timing. Validates the 1-based frame index, rejecting out-of-range values with the sprite's valid range.
Instructions
Set a single frame's duration in milliseconds (1-based frame).
`frame` must already exist: an out-of-range number is rejected with the sprite's
valid range rather than clamped to it (which used to report the requested number
while changing frame 1).
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": {
"filename": "<filename>",
"frame": "<frame>",
"duration_ms": "<duration_ms>"
},
"name": "set_frame_duration"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| frame | Yes | ||
| filename | Yes | ||
| duration_ms | Yes |