Skip to main content
Glama

draw

Add vector shapes, pressure-sensitive brush strokes, text, and SVG paths to a specified layer and frame in an OpenToonz scene for editable 2D animation.

Instructions

Draw drawing #frame on a layer (held until the next drawing when timing is auto).

Shapes (canvas px, origin top-left), painted in order: circle{x,y,r} ellipse{x,y,rx,ry,rotation} rect{x,y,w,h,radius,rotation} (x,y=top-left) polygon{points,smooth} path{points,smooth=true,closed} text{x,y,text,size,anchor='mm'} svgpath{d:'M.. C.. A.. Z', transform?} - any SVG path data (detailed art: hair, hands, folds) brush{points:[[x,y,pressure 0-1],...], width:px max, color} - inked stroke with per-point pressure Paint/ink: fill, stroke, stroke_width (px; default from style), opacity, interior=true (thinner interior line), trace_line=true (iro-tore coloured line), shadow=true|{light:deg,depth:px,color} (anime cel shadow; light 90=top, 135=top-left), or shadow={style:'hatch', spacing:px, angle:deg, cross:true, gradient:0-1, jitter:0-1, width:px} for pen hatching of the shadow side (real ink strokes), human=false (perfect geometry), wobble (px). Colours: '#rrggbb', css names or [r,g,b,a].

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": {
      "scene": "<scene>",
      "layer": "<layer>",
      "frame": "<frame>",
      "shapes": "<shapes>"
    },
    "name": "draw"
  }
}

Input Schema

NameRequiredDescriptionDefault
forceNo
frameYes
layerYes
sceneYes
shapesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

B3.3/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden, and it does disclose real rendering semantics: shapes are painted in order, and the drawing is held on the frame until the next drawing when timing is auto. It is silent on prerequisites (must the layer or scene exist), whether the call replaces existing content, failure behavior, and return values, which matters for a mutation tool with zero annotation coverage.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the operation, then a tightly packed structured reference block. Every line is a distinct shape or paint attribute definition with no filler prose; the density is high but appropriate for a grammar-style tool.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a drawing engine with no annotations and no output schema, the description handles the shape/paint vocabulary well but leaves the call contract incomplete: the roles of scene, layer, frame and force, and what happens to prior frame content, are undocumented. Adequate to construct a shapes payload, weaker on how to address the destination.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% across 5 parameters, so the description must compensate. It does this thoroughly for the dominant parameter `shapes`, spelling out per-shape geometry, paint/ink attributes, shadow modes and color formats, but scene, layer, frame and especially `force` are never explained beyond incidental mentions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The first line states a specific verb and resource ('Draw drawing #frame on a layer'), and the rest enumerates the primitive shapes that can be painted. However, it never distinguishes this from siblings such as paint, stroke, draw_many or ink_layer, so an agent cannot tell from the text alone which of those to reach for.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use, when-not-to-use, or alternative-selection guidance. The only contextual hint is the parenthetical about persistence ('held until the next drawing when timing is auto'), which describes behavior rather than routing. An agent comparing draw against paint, stroke, or draw_many gets no help.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.