Opentoonz Draw Frame
opentoonz_draw_frameDraw an RGBA frame using shapes, lines, text, or a composite PNG, then save it as an OpenToonz level drawing ready to import into a scene.
Instructions
Draw one RGBA frame with PIL primitives and save it as a level drawing.
ops: list of {"op": "rect|ellipse|line|polygon|polyline|text|image", ...} — see docs/tools.md. The "image" op composites an existing PNG, so art made elsewhere can join a drawn frame. Saved to /drawings/<level_name>..png, ready for opentoonz_import_images_as_level.
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": {
"workspace": "<workspace>",
"level_name": "<level_name>",
"ops": "<ops>"
},
"name": "opentoonz_draw_frame"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ops | Yes | ||
| frame | No | ||
| width | No | ||
| height | No | ||
| workspace | Yes | ||
| background | No | #181a2e | |
| level_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |