add_frame
Add a new frame to a pixel art document, optionally duplicating an existing frame. The new frame becomes active.
Instructions
Append a frame (optionally duplicating an existing one). The new frame becomes active.
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": {
"doc_id": "<doc_id>"
},
"name": "add_frame"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_id | Yes | Document id | |
| duration_ms | No | Default 100, or copied from the duplicated frame | |
| duplicate_from | No |