Skip to main content
Glama

import_image

Places a sketch, scan, painting, photo, or AI image into an OpenToonz layer as raster art or as editable vector strokes and fills.

Instructions

Bring a picture (sketch, scanned drawing, painting, photo, AI image) into a layer.

Raster layer (mode 'raster'): the image is placed as-is. Traced layer (add_layer mode='traced'): OpenToonz's own vectorizer turns it into editable vector strokes and fills on compile. trace: set the traced layer's method once: 'outline' (colour regions) | 'centerline' (ink lines). box [x,y,w,h] px (default whole canvas); fit contain | cover | stretch | none.

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>",
      "path": "<path>"
    },
    "name": "import_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
boxNo
fitNocontain
pathYes
frameNo
layerYes
sceneYes
traceNo
accuracyNo
thresholdNo
max_colorsNo
despecklingNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

B3/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden. It does add real behavioral context: traced mode produces vectors 'on compile', implying a required follow-up compile step — valuable non-obvious information. However, it is silent on whether the path must exist, what happens if the target layer already exists, any overwrite/mutation semantics, or permissions, which is a notable gap for a write-style import with zero annotations.

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

Conciseness3/5

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

It is front-loaded with purpose and then breaks mode details into compact lines, which is reasonably efficient. However, the telegraphic shorthand ('box [x,y,w,h] px', 'fit contain | cover | stretch | none') is cryptic in places and the parameter fragments sit awkwardly against a prose opening.

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

Completeness2/5

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

For an 11-parameter import tool with 0% schema coverage, no annotations, and no output schema, the description covers only a small fraction of the surface. The majority of parameters and any return/mutation behavior are left undefined, so an agent cannot reliably call this beyond the simplest raster case.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must compensate, and it only explains box (pixels, defaults to whole canvas), fit (contain|cover|stretch|none), and trace ('outline'/'centerline'). Eight parameters — path, frame, scene, accuracy, threshold, max_colors, despeckling — are undocumented anywhere, and accuracy/threshold/max_colors/despeckling are exactly the knobs an agent would need to reason about for tracing quality.

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?

States a specific verb and resource — 'Bring a picture (sketch, scanned drawing, painting, photo, AI image) into a layer' — and enumerates accepted source types. It also splits the two operating modes (raster vs traced), which makes the tool's identity clear even without naming siblings like import_svg or import_scene.

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

Usage Guidelines3/5

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

It gives useful internal mode guidance — use 'raster' to place as-is, use traced mode when you want OpenToonz's vectorizer to produce editable strokes — which implies when each mode applies. It offers no guidance on when to choose this over import_svg or import_scene, so the when-to-use-vs-alternatives dimension is left to inference.

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