Skip to main content
Glama

OpenToonz MCP

Let an AI assistant animate inside OpenToonz, the open-source 2D studio tool, and keep every frame editable.

CI PyPI Python License: MIT MCP

Summer hill. An original shot in the hand-painted tradition of Japanese feature animation. 96 frames, 29 layers, ten depth planes, a camera that travels with her, and a soft painted finish. Every drawing is an OpenToonz vector level, every move is a keyframe, and the finish is real OpenToonz fx. Open the scene and change anything.

How this shot was made · Draw together · Install · 59 tools · Guide


At a glance

59 tools

scenes, layers, drawing, ink strokes, paint, timing, keyframes, physics, rigs, walk and run, camera, fx looks, render

214 tests

57 of them drive the real OpenToonz: they render and compare pixels, or draw in its open window

3 ways to draw

shapes and SVG paths · pen strokes on a shared ink layer · your own art, placed or traced

2 ways to work together

through the files, with any OpenToonz 1.8 · live in your open window, with the otbridge plugin

Windows and Linux

unit tests run on both in CI; rendering is tested on Windows and confirmed on Linux by a user

Related MCP server: rev2d

How this shot was made

The whole shot is 45 tool calls. No frame was painted by hand and no image or video model was involved. In order:

Step

Tools

What happened

1. Layout

create_scene add_note add_layer ×9

A 96-frame scene at 24 fps, with the layers back to front. The grass texture on the slope is an ink layer.

2. Sky

draw

Thirteen bands of blue, deep overhead and pale at the horizon.

3. Clouds

draw ×2

The big cumulus is 37 shapes in four tones, laid in the order a background painter works: shaded underside, body, light turning into shade, then the tops the sun reaches. Flat clouds and a smaller tower sit on the horizon.

4. Sea and hills

draw ×3

A strip of sea with a bright horizon line, two far headlands, then the middle hill with eleven trees, a cloud's shadow on the grass, a cottage and a windmill tower.

5. Windmill sails

draw

The sails are their own layer, so they can turn.

6. Near hill

draw stroke

The bank she walks on, its sunlit top and worn path, and 54 short pen marks of grass.

7. Character

build_character walk_cycle

A 17-part rig in the feature design, staged at 40 % of the frame height: a face with an iris, a highlight and blush, a bob under a straw hat with a ribbon, a sun dress with a sash and a skirt that is its own layer, one shadow tone on every colour, a thin warm line, and no seams at the joints. Then a happy walk: planted rolling feet, two-bone leg IK, hips on an inverted-pendulum arc. How the design was arrived at is in docs/CHARACTER_DESIGN.md.

8. Foreground

add_layer ×3 draw ×2 stroke ×3

Eighteen flowers, 43 blades of grass as single pen strokes thick at the root and thin at the tip, and eight seeds in the air.

9. Motion

set_pivot set_keyframe ×9

The sails turn about their hub, both cloud layers drift, the seeds ride the wind.

10. Camera

camera_move ×2

A slight push in and a 150 px pan that travels with her. Each plane moves at its own speed: sky 2 %, the big cloud 8 %, sea 14 %, middle hill 45 %, her hill 100 %, flowers 150 %, grass 170 %.

11. Finish

apply_look

The ghibli look preset: gentle bloom on the highlights, a slightly warmer grade and fine paper grain, as OpenToonz fx nodes you can open in the FX Schematic.

12. Check and render

validate_scene render

OpenToonz rendered 96 frames in about 45 seconds. The server checked the frame count, blank frames and flashing.

The exact calls, with every coordinate, are in docs/media/making_of_summer_hill.py. Run it and you get the same scene, ready to edit in OpenToonz.

41 tool calls: docs/media/making_of_nightwalk.py.

Draw together, on the same drawing

Every line of this cat is one pen stroke the assistant placed with the stroke tool: 26 strokes, each with its own pressure, written straight into an OpenToonz vector level. No script generated it and nothing was traced.

That level is an ink layer. You and the assistant both draw on it:

  • It sees your lines. read_drawing returns every stroke on the drawing, yours included.

  • It adds, it never replaces. New strokes go on top. Your lines and your paint stay.

  • It paints and it looks. In live mode paint fills closed areas, and live_view shows it your viewer as you see it.

  • It can be live. With the optional otbridge plugin, strokes appear in your open OpenToonz window as they are drawn, and Ctrl+Z takes them back.

The guide is docs/DRAWING_TOGETHER.md.

Every kind of person

One build_character call each. Age from 1 to 85, ten skin tones, face controls for the individual, seven hair styles, four head coverings and ten outfits, from shorts to a suit to a robe. The reasoning, and what is still missing, is in docs/CHARACTER_DESIGN.md.

Why I built this

Most "AI animation" today produces a finished video you can't edit. Animators need the opposite: drawings they can fix, timing they can retime, and a scene they can hand to the next person in the pipeline.

OpenToonz is the open-source release of Toonz, the software Studio Ghibli customised and used on its films. It already has everything a 2D pipeline needs: vector levels, an xsheet, pegbars, cameras and a compositor. What it lacked was a way for an assistant to use it.

OpenToonz MCP is that bridge. You describe a shot. The assistant lays it out, draws key poses, in-betweens them, times them on ones, twos or threes, adds camera work, and renders. The result is a normal OpenToonz scene. You can open it, change anything, save it, and ask the assistant to continue. Your edits are kept.

— konkomaji · konkomaji.com

Who it's for

  • Animators and directors who want fast layouts, animatics, in-betweens and camera passes they can then finish by hand.

  • Indie studios and solo creators making shorts, explainers, music videos or game cutscenes without a full crew.

  • Teachers and students of animation. The tools follow the classic principles (slow in/out, arcs, anticipation, follow-through), so the output is a worked example you can inspect frame by frame.

  • Developers building creative AI tools who need a real, inspectable 2D pipeline rather than pixels.

What it can do

🎨 Native vector drawing

Shapes, SVG paths and pressure brush strokes become OpenToonz .pli vector levels. OpenToonz performs the conversion itself, so the drawings are fully editable with OpenToonz's vector tools.

✍️ A hand-drawn look

Pen-pressure taper. Subtle line wobble that holds still on held frames. Optional line boil. Anime cel shadows or pen hatching (inspired by p5.brush), and coloured trace lines. Style presets: anime, feature, cartoon, sketch, clean.

🎞️ Animator timing

In-betweens with slow-in/slow-out, arcs and squash and stretch that keeps the area constant. Xsheet exposure on ones, twos or threes. Blinks and lip sync from text.

🦘 Principles built in

animate_action adds anticipation, overshoot and settle using classic proportions. Physics tools do gravity-exact bounces (with material presets), recipe jumps, and spring-based follow-through for hair, tails and cloth.

🧍 Characters that look drawn, on real bodies that walk and run

build_character makes a side-view cut-out rig for any age and sex (toddler, girl, boy, teen, woman, man, old woman, old man) from published body measurements, optionally with regional averages from national health surveys (for example the US, India, West Bengal, Japan, the UK or Nigeria). walk_cycle and run_cycle animate it from gait studies: planted feet that roll heel to toe, two-bone leg IK, an inverted-pendulum walk and a spring-mass run with exact gravity in the air. Each call reports cadence, step length, knee angles and foot slip so you can check the motion.

🎬 Studio looks

apply_look adds a ghibli, klaus, spider_verse, comic, anime_satsuei, painterly or cartoon_saloon look as real OpenToonz fx nodes (bloom, form shadow and rim light, offset colour plates, grain). They stay editable in the FX Schematic, and remove_look takes them out cleanly.

🎥 Camera work

Pans with parallax layers, exponential trucks, impact and trauma shake, and a smoothed camera follow. It warns before a move reveals empty background or pans fast enough to strobe.

🖼️ Bring your own art

Import SVG files as editable shapes. Place images, or let OpenToonz's own vectorizer trace them into vector levels. Build a reusable parts library (model sheets with variants such as mouth charts).

🔁 Works with your hand edits

The scene file is the source of truth. Retime or redraw in OpenToonz, save, and the assistant picks up your changes instead of overwriting them.

🤝 Draw on the same drawing

An ink layer is one vector level you and the assistant both draw on. read_drawing shows it every stroke that is there, yours included. stroke adds pen lines with pressure on top, straight into the .pli, without touching your lines or your paint. erase_stroke takes lines out. Nothing is regenerated, and your edits never lock the layer. With the optional otbridge plugin this is live: strokes appear in your open OpenToonz window as they are drawn, the assistant sees your unsaved strokes, and Ctrl+Z takes its lines back.

🛡️ Safe by design

Every edit takes a snapshot first. Failed calls roll back automatically. undo restores scenes and drawings exactly, writes are verified before they land, and per-scene locks protect against concurrent writers.

🧠 Remembers and improves

It keeps notes and a journal per scene. Errors, render reviews and your feedback become ranked lessons that later sessions see, and tune_style makes preferred defaults permanent.

Requirements

  • OpenToonz 1.8 on Windows. The server auto-detects the install and the "stuff" folder from OpenToonz's registry entries.

  • Python 3.10+.

  • ffmpeg on PATH for MP4 and GIF output (PNG sequences work without it).

Install

pip install opentoonz-mcp
# or run without installing:
uvx opentoonz-mcp

Use pip 26.2.2+ or uv 0.13.4+. Older versions still trust the emSign certificate authority that was pulled after the October 2026 eMudhra incident. Upgrade first with python -m pip install --upgrade pip certifi or UV_SYSTEM_CERTS=true uv self update. The package itself requires certifi>=2026.10.19.

Claude Code

claude mcp add opentoonz -- uvx opentoonz-mcp

Claude Desktop, Cursor and other MCP clients

{
  "mcpServers": {
    "opentoonz": {
      "command": "uvx",
      "args": ["opentoonz-mcp"],
      "env": {
        "OPENTOONZ_HOME": "C:\\Program Files\\OpenToonz",
        "OPENTOONZ_STUFF": "C:\\OpenToonz stuff"
      }
    }
  }
}

The env block is optional. Use it only if auto-detection picks the wrong install.

Variable

Meaning

Default

OPENTOONZ_HOME

Folder containing OpenToonz.exe and tcomposer.exe

detected from the Windows uninstall entry, then C:\Program Files\OpenToonz

OPENTOONZ_STUFF

OpenToonz "stuff" folder (TOONZROOT)

detected from HKLM\SOFTWARE\OpenToonz\OpenToonz

OTMCP_WORK

Where state, undo snapshots, renders and lessons are kept

%LOCALAPPDATA%\opentoonz-mcp

Ask the assistant to run opentoonz_info first. It reports what it found and anything missing.

Set up, step by step

  1. Install OpenToonz 1.8 from opentoonz.github.io and start it once, so it creates its "stuff" folder.

  2. Install ffmpeg if you want MP4 or GIF output (winget install Gyan.FFmpeg).

  3. Add the server to your MCP client with one of the snippets above. Nothing else needs installing; uvx fetches the package.

  4. Restart the client, then ask: "Run opentoonz_info." You should see the OpenToonz version and both folders. If a path is wrong, set OPENTOONZ_HOME and OPENTOONZ_STUFF.

  5. Make something small: "Create a 2-second scene with a red ball that bounces twice, and show me a contact sheet."

  6. Open it in OpenToonz: "Open the scene in OpenToonz." Everything you see is editable.

To upgrade: pip install -U opentoonz-mcp (with uvx, run uvx opentoonz-mcp@latest once), then restart the client. Scenes made with 0.1.0 keep working.

To draw together, add step 7: "Add an ink layer called sketch." Draw on it in OpenToonz, save, and ask the assistant to look at your drawing and continue. docs/DRAWING_TOGETHER.md walks through it.

Optional: live drawing (otbridge)

Everything works without this. Install it if you want the assistant's strokes to appear in your open OpenToonz window as they are drawn.

The plugin is C++ and has to be compiled for the exact OpenToonz you run, so it is not in the pip package as a binary. The source and a build script are in bridge/:

python bridge/build.py --opentoonz "C:\Program Files\OpenToonz" --source <opentoonz source> --qt <Qt 5.15.2 msvc2019_64> --install

Restart OpenToonz, then ask the assistant for opentoonz_live. It is built and tested for the official OpenToonz 1.8.0 Windows build, and it switches itself off in any other build instead of risking a crash.

Try it

Create a 4-second anime-style scene of a round mochi character on a hill. It blinks, crouches, jumps and lands with squash and stretch while the camera pans right with parallax. Then render an MP4.

Import my sketch C:\art\pose.png on a traced layer with centerline tracing, then in-between it to the next key on twos.

Build an old woman and a seven-year-old girl, and have them walk across the frame together.

Open the scene in OpenToonz. I'll fix the arm on frame 12. … Done: carry on from frame 13.

Make an ink layer called rough. I'll sketch the pose in OpenToonz. … Look at my drawing and add the hands and the hair on top, in a darker line.

I have the scene open. Draw the whiskers on the cat's face while I watch, a few strokes at a time.

A good session looks like a studio pipeline:

  1. scene_context (always first)

  2. create_scene

  3. add_note (story)

  4. Layout: layers, pegs and camera

  5. Key drawings, then inbetween and timing

  6. set_pivot, then keys, animate_action and physics (or build_character and walk_cycle for people)

  7. camera_move, then apply_look for a studio finish

  8. validate_scene, contact_sheet, render

Drawing together is a shorter loop, repeated:

  1. add_layer(mode="ink"), or ink_layer on a layer you already have

  2. read_drawing (what is there, and who drew it)

  3. stroke (a few lines)

  4. preview_frame (look), then back to 2

The full list of 59 tools with every parameter is in docs/TOOLS.md.

How it works

assistant ──MCP──► opentoonz-mcp ──► .tnz scene (edited in place, lossless)
                         │
                         ├─► SVG drawings ──► OpenToonz.exe (headless script) ──► native .pli ──► pen pressure
                         ├─► images ───────► OpenToonz vectorizer ───────────────► traced .pli
                         ├─► pen strokes ──► written straight into the .pli (ink layers; your strokes stay)
                         │        └─ or, when the scene is open in OpenToonz with otbridge ──► live in your viewer
                         └─► tcomposer.exe (OpenToonz's renderer) ──► PNG ──► ffmpeg ──► MP4 / GIF

Everything that touches OpenToonz data is checked against OpenToonz itself. The keyframe interpolation, for example, is a port of OpenToonz's evaluator, and tests compare it frame by frame with real tcomposer renders (within 1.5 px).

The same rule holds for ink layers. The .pli editor rewrites every level in my test folder byte for byte, and OpenToonz saves a level written by it back unchanged.

Document

What is in it

docs/CHARACTER_DESIGN.md

How a scene is made in a studio, what real frames have that a rig lacks, and what the character builder does about it

docs/DRAWING_TOGETHER.md

Ink layers and live drawing: the workflow, the tools, worked examples, limits

bridge/README.md

The otbridge plugin: build, install, safety, protocol

docs/TOOLS.md

Every tool and parameter

docs/ARCHITECTURE.md

Modules, the per-call transaction, layer modes, live mode

docs/FORMAT_NOTES.md

The OpenToonz file-format facts the code depends on, each one verified

docs/WHITEPAPER.md

The design and the reasoning behind it

Limitations

  • Windows first, Linux second. It is developed and render-tested on Windows with OpenToonz 1.8. The unit tests also run on Linux in CI, and a user runs the whole suite against OpenToonz 1.8.0 built from source on Linux; set OPENTOONZ_HOME and OPENTOONZ_STUFF there. macOS is untested.

  • Drawing comes from shapes, paths, brush strokes and imported art. There is no built-in image generator. Bring your own art, or have the assistant compose it from paths and parts.

  • A shape layer has one author at a time. A vector layer is rebuilt from the assistant's shapes. If you redraw it in the GUI, the assistant won't overwrite your work unless told to (force=true). To keep drawing on it together, turn it into an ink layer with ink_layer.

  • Live drawing needs the otbridge plugin, and it exists for one build so far. It is compiled for the official OpenToonz 1.8.0 Windows build and refuses to start in any other. Without it, OpenToonz does not reload a level that changed on disk: after the assistant draws, use File > Revert Scene to see it, and save your own strokes before asking it to draw. Ink strokes are lines only: paint areas in OpenToonz, or use a vector layer.

  • Render tests need a local OpenToonz. CI runs the unit tests only.

Contributing

Issues and pull requests are welcome. See CONTRIBUTING.md. Changes are recorded in CHANGELOG.md.

Credits

  • Built by konkomaji.

  • Powered by OpenToonz (BSD-3-Clause), which is not bundled. Thank you to DWANGO, the original Toonz team at Digital Video, Studio Ghibli, and every OpenToonz contributor. See NOTICE.

  • This project is not affiliated with OpenToonz, DWANGO, Digital Video or Studio Ghibli.

Released under the MIT License.

Available Tools

59 tools
add_layerA

Add a column with its own drawing level. Later layers are drawn ON TOP. mode: 'vector' (shapes -> native OpenToonz vector .pli, editable in GUI, pressure lines) | 'ink' (a vector .pli you and the user both draw on, stroke by stroke: stroke / read_drawing / erase_stroke) | 'raster' (PNG). style: override scene style for this layer (e.g. 'clean' for BG, 'sketch' for effects). parent: 'Table', a peg or another layer. boil: hand-drawn line boil on held drawings.

Inputs: layer (required), scene (required), boil, mode, +2 more.

add_noteA

Save a memory note for this scene (story, character design, decisions, todo). Shown in scene_context.

Inputs: note (required), scene (required).

add_pegB

Add a pegbar (invisible transform node). Parent layers to it to move groups (character rigs, BG sets).

Inputs: peg (required), scene (required), parent.

anatomy_referenceA

Body proportions for drawing a person, from anthropometric data (Drillis-Contini segment lengths, de Leva masses, CDC/NHANES stature, growth-standard head ratios). person: baby | toddler | boy | girl | child | teen | teen_boy | teen_girl | young_man | young_woman | man | woman | old_man | old_woman (or give age years / label and sex). Returns heights from the floor, segment lengths, front widths, side depths (px), heads tall, mass fractions, centre of mass, notes. Scale: height_px, or px_per_m (340 = 1.75 m adult about 600 px; keep one px_per_m per scene). region (list_regions): population averages from national health surveys (stature, leg length via sitting-height ratio); bmi: a number, or 'average' for the region's surveyed mean (default: a neutral build). Averages only: individuals vary far more than regions do.

Inputs: age, bmi, sex, person, +3 more.

animate_actionB

Move a layer/peg/camera with animation principles baked in (Illusion of Life numbers): anticipation (opposite move, 15% amplitude, 25% of duration, min 3f), main move with slow-in/out, overshoot (10% past target) and damped settle (x0.45 swing) over settle_frames AFTER 'end'. to/from_: {x,y,rotation,scale,scale_x,scale_y} (px/deg/factor). from_ defaults to current value at start.

Inputs: to (required), end (required), scene (required), start (required), +6 more.

apply_lookA

Give the scene a studio look made of real OpenToonz fx nodes (open the FX Schematic to tweak them). look: ghibli | klaus | spider_verse | comic | anime_satsuei | painterly | cartoon_saloon (list_looks). Whole-frame fx go just before the output; per-layer fx (e.g. Klaus form shadow and rim light) go on layers (default: every layer except ones named like bg/background/sky). strength scales the amounts (0.5 subtle, 1 default, 1.5 strong). light_angle: degrees, 90 = light from above, 135 = top-left. Re-applying replaces the previous look; fx you made by hand are kept.

Inputs: look (required), scene (required), layers, strength, +1 more.

build_characterA

Build a side-view cut-out character rig with real proportions for the age and sex. Creates a root peg '' at the hips and 16 vector layers '_' (torso, head, upper arm, forearm, hand, thigh, shin, foot, toe; far side darker and behind), parented like a skeleton with each pivot on its joint. Animate it with walk_cycle / run_cycle, or key the parts directly (rotation on a part turns it about its joint). x: hip x px (default centre); ground_y: floor line px (default 90% of the frame). hair: short | long | bob | ponytail | bun | afro | none. colors: {skin, hair, top, bottom, shoes, line, ribbon, hat, eye, socks}. region / bmi: as in anatomy_reference (population averages; faces and heads are never varied by region). design: 'feature' (default; drawn like a hand-drawn feature character: a face with an eye that has an iris and a highlight, lash, brow and blush, designed hair, one hard shadow tone on every colour, a thin warm line with coloured trace lines on cloth, hands with a thumb, shoes with a sole, and no seams at the joints) | 'classic' (the plain rig of 0.1 to 1.1). With 'feature': outfit: shirt | shorts | dress | skirt | long_skirt | tunic (a kurta or long shirt) | robe (a thobe, abaya or gown) | wrap (a kimono or hanbok: hanging sleeves and a broad sash) | suit | coat. Anything that hangs from the waist is its own '_skirt' layer. Set colours with colors{top, bottom, ribbon}. hat: none | straw | cap | headscarf | turban (colour: colors{hat}). skin_tone: 1 (lightest) to 10 (deepest); or give colors{skin} any colour. face: {nose, lips, jaw, brow, eyes}, each -1 to 1, shapes this one person's profile (nose projection, lip fullness, chin, brow ridge, eye opening). Choose them for the individual you are drawing. The tool never ties a face or a skin tone to a region: people of every place vary far more than places do. appeal 0-1 enlarges a child's head toward the 5 to 5.5 heads animation designs use (0 = anatomical). Ages from a baby to 85 work: proportions, posture, grey hair and a few lines of age follow the age. Stage the character large: at least a third of the frame height, or the face cannot be read. Every layer stays an editable vector level.

Inputs: name (required), scene (required), x, age, +16 more.

camera_followB

Follow a layer/peg with the camera using critically damped smoothing (game-camera SmoothDamp). smooth_time in frames (7 = 0.3 s); axis x | y | xy; offset px added to the followed position.

Inputs: end (required), scene (required), start (required), target (required), +3 more.

camera_moveA

Camera work (satsuei): kind='pan': move view by dx,dy px from start..end (eased 8f). parallax={layer: ratio} makes layers move at ratio of camera speed (sky 0.05, far BG 0.3, mid 0.6, char 1.0, FG 1.8). kind='truck': zoom to 'zoom' scale (0.75 = push in 25%) with exponential interpolation. kind='shake': impact shake starting at 'start', strength px (8 default), decays x0.7/frame on ones.

Inputs: kind (required), scene (required), start (required), dx, +5 more.

clear_keyframesC

Remove keys from a target (optionally one param: x,y,rotation,scale,scale_x,scale_y,z; optional frame range).

Inputs: scene (required), target (required), end, param, +1 more.

compile_vectorsA

Convert pending vector drawings to native OpenToonz .pli levels with pen-pressure lines. Runs automatically before preview/render/open. force=true also overwrites GUI-edited levels.

Inputs: scene (required), force.

contact_sheetB

Render several frames into one labelled grid (default 6 spread over the scene) to review motion.

Inputs: scene (required), frames, thumb_width.

create_sceneC

Create a scene in the OpenToonz sandbox project. style: anime | feature | cartoon | sketch | clean (line weight, wobble, taper, default timing).

Inputs: name (required), fps, style, width, +4 more.

delete_layerB

Delete a layer (column, level, drawings). Undo-able.

Inputs: layer (required), scene (required).

drawB

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].

Inputs: frame (required), layer (required), scene (required), shapes (required), +1 more.

draw_manyB

Batch draw: drawings=[{"frame": n, "shapes": [...]}, ...]. Use for frame-by-frame animation.

Inputs: layer (required), scene (required), drawings (required), force.

erase_strokeA

Remove strokes from a drawing on an ink layer by index (from read_drawing). Indices are those BEFORE the call; the remaining strokes are renumbered. A stroke that borders a painted area is refused.

Inputs: frame (required), layer (required), scene (required), indices (required).

feedbackB

Store the USER's rating (1-5) and comment about a result. Ranked highest in lessons/preferences. Ask the user for this after showing a render.

Inputs: scene (required), rating (required), comment.

follow_throughA

Overlapping action / follow-through from a damped spring (second-order system). The target reacts to the driver's motion (driver's param, exact OpenToonz values). mode 'follow': target_param = spring(driver) (a separate object trailing the driver). mode 'offset': target_param = gain * (spring(driver) - driver) (a part PARENTED to the driver: hair, ears, tail, cloth; use target_param='rotation' with gain in deg per px for a swing). frequency Hz (hair 2-2.5, ears 3, belly 4-5, cape 1.2), damping 0.25-0.5 (overshoot 15-45%), response < 0 anticipates. Keep frequency <= 4 Hz on ones, <= 2.5 Hz on twos (aliasing).

Inputs: end (required), scene (required), start (required), driver (required), +8 more.

get_journalB

Operation history of a scene (every MCP action, outside edits detected, errors).

Inputs: scene (required), last. Returns: result

import_imageB

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.

Inputs: path (required), layer (required), scene (required), box, +7 more.

import_sceneA

Bring an existing OpenToonz .tnz (made in the GUI) under MCP control. Copies it into the sandbox scenes folder if it is elsewhere. Its columns appear as 'foreign_columns' you can key/retime. A scene the MCP already manages is refused unless overwrite=true (its MCP layer data is reset).

Inputs: path (required), name, overwrite.

import_svgB

Import an SVG file (Inkscape/Illustrator/free assets) as editable vector shapes on a drawing. Every path becomes an 'svgpath' shape you can tween, recolour or humanize (human=true adds the hand-drawn wobble/pressure of the layer style). box [x,y,w,h] fits the art (default whole canvas).

Inputs: path (required), layer (required), scene (required), box, +3 more.

inbetweenA

Generate in-betweens (douga) between two key drawings (genga).

start/end_shapes default to the drawings already on start_frame/end_frame. easing: slow_in_out (studio chart) | snappy | linear | in | out | bounce | elastic | back. step: 1 ones, 2 twos, 3 threes (default: style timing, anime=3, feature=2). arc: bow of the travel path (0.15 = natural arc). squash: 0-1 stretch round shapes along motion. Studio rule: only auto-inbetween 'tight' moves (rotation<=30deg, scale change<=25%); add a breakdown key otherwise.

Inputs: layer (required), scene (required), end_frame (required), start_frame (required), +7 more.

ink_layerA

Turn a vector layer into an ink layer, so you and the user can both keep drawing on it. Its level file becomes the only truth: the shapes it was built from are dropped, it is never recompiled, and edits made in OpenToonz no longer lock it. After this use stroke / read_drawing / erase_stroke; draw no longer applies.

Inputs: layer (required), scene (required).

knowledgeC

Search accumulated lessons (errors seen, quality issues, insights, user preferences) with advice.

Inputs: limit, query. Returns: result

learn_lessonB

Record an insight from reviewing your own output (e.g. 'squash 0.8 looks rubbery; 0.4 reads better for a heavy ball'). Lessons are shown in every later scene_context so future work improves.

Inputs: lesson (required), tags, scene.

lip_syncA

Animate a mouth from text (no audio): each mouth shape is a VARIANT of a library part (anime3: closed/half/open; blair: AI E O U WQ MBP FV L etc rest). Draws one drawing per shape on the layer and writes the xsheet from start (2-frame minimum holds). Shift start 2 frames earlier than the audio (mouths lead sound).

Inputs: x (required), y (required), part (required), text (required), +6 more.

list_looksB

Studio looks apply_look can build from real OpenToonz fx, with what each does.

Inputs: no named parameters.

list_partsB

Parts in the model-sheet library with their variants.

Inputs: no named parameters. Returns: result

list_regionsA

Regions with surveyed body averages for anatomy_reference / build_character (region=...).

Inputs: no named parameters.

list_scenesC

Scenes known to the MCP.

Inputs: no named parameters. Returns: result

live_viewA

See the OpenToonz viewer exactly as the user sees it right now: their zoom and pan, onion skin, unsaved strokes, everything. It takes a fraction of a second and saves nothing, so use it after every few live strokes to check your work. (preview_frame renders the saved files through the camera instead.) Needs OpenToonz running with the otbridge plugin.

Inputs: max_width.

open_in_opentoonzA

Open the scene in the OpenToonz GUI for hand editing (vector levels compiled first). After editing: SAVE in OpenToonz, then the MCP picks up your changes automatically.

Inputs: scene (required).

opentoonz_infoB

Install paths, version, scenes, and whether the OpenToonz GUI is running.

Inputs: no named parameters.

opentoonz_liveA

The live link to a running OpenToonz (needs the otbridge plugin, see bridge/README.md). action: 'status' (is OpenToonz connected, which scene is open, is it unsaved, which cell is the cursor on) | 'save' (File > Save All, so preview_frame / render / the files show what is on screen) | 'undo' | 'redo' (Edit > Undo / Redo in OpenToonz). When the scene you work on is open there, stroke, read_drawing and erase_stroke go through this link by themselves: strokes appear at once in the user's viewer.

Inputs: action.

paintA

Paint closed areas of a drawing on an ink layer, like clicking with the fill tool: every area that contains one of the points (canvas px) gets the colour. The outline around a point must be closed. Live only: it is done by OpenToonz itself, so the scene must be open there with the otbridge plugin (opentoonz_live shows the link). 'missed' lists points that were not inside a closed area: close the gap with stroke, or move the point. One undo step in OpenToonz.

Inputs: frame (required), layer (required), scene (required), points (required), +1 more.

physics_bounceA

Physically exact bouncing (gravity parabolas, coefficient of restitution) on a layer/peg. The drawing must rest on the ground line; y offsets go UP from there. height px. fall_frames: frames for the first drop (default: real gravity for a 1.7 m character = 1080 px tall, i.e. 14.1*sqrt(height/1080)). material: rubber_ball | table_tennis | basketball | tennis | soft_rubber | bowling | balloon (sets restitution and squash). travel_x: px moved over the whole bounce, slowing with each contact. squash: area-preserving contact squash (set_pivot at the feet first).

Inputs: scene (required), start (required), height (required), target (required), +6 more.

physics_jumpC

Recipe jump on a layer/peg: anticipation crouch -> takeoff stretch -> exact parabola -> landing squash -> recovery. style: realistic | feature | cartoon (crouch depth, stretch and squash amounts). air_frames default: real gravity for the scene height (1.7 m character = frame height).

Inputs: scene (required), start (required), height (required), target (required), +2 more.

preview_frameB

Render one frame through OpenToonz and return the image (check your work visually).

Inputs: scene (required), frame, max_width.

read_drawingA

Look at a vector drawing as strokes, the user's included: what is on the level file right now. Works on ink and vector layers. Each stroke: index (drawing order, later = on top), by ('mcp' = drawn with stroke, 'other' = the user in OpenToonz or shapes), color, width px, closed, bbox [x0, y0, x1, y1] and points [[x, y, pressure], ...] along the line (canvas px, thinned to max_points). Use it before adding to someone's drawing, then preview_frame to see the result. only_new=true returns just the strokes that appeared since your last read_drawing or stroke on this drawing ('gone' counts the ones that disappeared): the quick way to see what the user just did.

Inputs: frame (required), layer (required), scene (required), only_new, +1 more.

remove_lookB

Remove the fx apply_look added (fx you made in OpenToonz stay).

Inputs: scene (required).

renderB

Render with OpenToonz (tcomposer), then double-check: frame count, blank frames, flashing. format: mp4 | gif | png (sequence). shrink 2 = half size (faster drafts).

Inputs: scene (required), end, start, format, +1 more.

run_cycleC

Run a build_character rig: spring-mass physics (exact gravity in the flight phase, a spring arc in contact, lowest at mid-stance), planted feet, high knee recovery, bent arms. Defaults by age and sex from jogging norms (adult man about 166 steps/min at 3.3 m/s). Same options as walk_cycle; bounce=1 keeps gravity exact.

Inputs: scene (required), character (required), on, end, +9 more.

save_partA

Save a reusable part to the global model-sheet library (head, eye, hand, mouth chart, prop). shapes use the part's own coordinates; anchor [x,y] is its attachment/pivot point. variants: alternative drawings by name, e.g. {"closed": [...], "A": [...], "O": [...]}. Use in any drawing as {"type":"part","name":..,"variant":..,"x","y","scale","rotation","flip"}.

Inputs: name (required), shapes (required), notes, anchor, +1 more.

scene_contextA

CALL FIRST. Full current state of a scene from disk: settings, layers, timing, keyframes, outside (GUI) changes detected, notes/memory, recent journal, warnings.

Inputs: scene (required).

set_exposureB

Xsheet timing for a layer (sets timing=manual). cells[i] = drawing at frame i+1 (0 = blank), or run-length text '1x6 2x6 3x4 0x2' (drawing x frames). Cycle example on twos: '1x2 2x2 3x2 4x2 1x2 ...'.

Inputs: cells (required), layer (required), scene (required).

set_keyframeB

Keyframe a layer, peg, or 'camera' (real OpenToonz keys, editable in GUI Function Editor). x/y: px offset from rest (+y down). rotation: deg CCW. scale*: 1.0=100%. z: depth. interp (segment starting at this key): ease | linear | constant | speed | exp. Camera: scale<1 zooms IN; use exp interp for trucks (natural zoom).

Inputs: frame (required), scene (required), target (required), x, +7 more.

set_layerC

Layer properties: visible, opacity (0-1, renders), boil, style (needs redraw), timing 'auto'|'manual'.

Inputs: layer (required), scene (required), boil, style, +3 more.

set_parentC

Re-parent a layer or peg to 'Table', a peg, or another layer.

Inputs: scene (required), parent (required), target (required).

set_pivotA

Set the rotation/scale pivot of a layer or peg without moving it (OpenToonz 'center'). x,y: canvas px. x='auto': from the layer's drawing bounds; anchor 'bottom' (feet - use for squash on the ground) | 'center' | 'top'. Do this BEFORE squash/stretch or rotation keys.

Inputs: scene (required), target (required), x, y, +1 more.

set_scene_settingsC

Change scene length (frames), fps, background colour, or default drawing style.

Inputs: scene (required), fps, style, frames, +1 more.

strokeA

Draw by hand on an ink layer: each stroke is one pen line, written straight into the OpenToonz vector level on top of what is already there (yours or the user's). Nothing is regenerated or overwritten.

strokes: [{"points": [[x, y] or [x, y, pressure 0-1], ...], "width": px at full pressure (default: the style's line), "color": '#rrggbb', "closed": false, "smooth": true}]. Points are canvas px (origin top-left); the line passes through every point (smooth=false joins them with straight segments). Without pressure values the ends are tapered like a pen lift (taper 0 = none, 1 = to a hair). Work like an artist: read_drawing / preview_frame to look, add a few strokes, look again. Lines only: painted areas are made in OpenToonz, or with draw on a vector layer.

Inputs: frame (required), layer (required), scene (required), strokes (required), +1 more.

style_guideA

Studio animation rules (Ghibli/Disney/anime practice) with numbers: timing, spacing, squash, line weight, shading, camera. topic: 'rules' (numbered defaults) | 'full' | 'styles'.

Inputs: topic. Returns: result

tune_styleB

Permanently adjust a style preset's defaults (learned from feedback). Keys: line, interior, wobble, wavelength, taper_start, taper_end, min_ratio, pressure_var, loop_var, exposure, squash [lo,hi], shadow, overshoot_ends. Applies to all future drawings using that style.

Inputs: style (required), reason (required), changes (required).

undoB

Restore the scene (and any overwritten vector levels) to the state before the last N MCP writes.

Inputs: scene (required), steps.

validate_sceneA

Double-check a scene: structure, missing files, layer/column mapping, timing gaps, studio rule warnings (holds, pan speed), and optionally a 1-frame test render.

Inputs: scene (required), render_test.

walk_cycleA

Walk a build_character rig with biomechanically correct timing for its age and sex. Feet stay planted and roll heel -> flat -> ball -> toe; legs use two-bone IK; the hips ride an inverted-pendulum arc (low at contact, high at passing); arms swing opposite the legs. Defaults come from gait studies (e.g. adult man 108 steps/min at 1.4 m/s; toddler 154 at 0.86; old age shorter steps). speed m/s, cadence steps/min override them. cycles (default 2) or end. travel=false walks in place (pan the BG). on=2 holds every pose 2 frames (keys become constant). bounce, arm_swing scale the motion (1 = natural; >1 = cartoon); lean adds forward trunk lean (deg). mood (Williams beat chart and character walks): natural | brisk | stroll (16 frames a step) | tired (20, head down, low clearance) | proud (chest out) | happy (double bounce) | sneak (crouched, 24 frames) | heavy (long contact, deep down) | cartoon (8 frames). speed/cadence still override. Returns the self-check: cadence, step length, vertical oscillation, knee flexion, foot slip.

Inputs: scene (required), character (required), on, end, +10 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.1/5.0

    Scored across 59 tools

    Disambiguation3/5

    Most tools target clearly distinct operations (build_character, walk_cycle, apply_look, render), but several clusters overlap confusingly: draw vs stroke vs draw_many vs inbetween all produce drawings, preview_frame vs live_view vs contact_sheet vs render all 'look at the result', and set_keyframe vs animate_action vs camera_move vs camera_follow all animate properties. Detailed descriptions do disambiguate them in context (layer-type and live-link distinctions), but an agent must hold a lot of nuance to pick correctly.

    Naming Consistency3/5

    The dominant pattern is snake_case verb_noun (add_layer, set_pivot, delete_layer, create_scene, list_parts, remove_look), but there are many noun-only or bare-verb names (stroke, paint, draw, blink, inbetween, feedback, knowledge) plus a category-prefixed family (physics_bounce, physics_jump) and a server-prefixed pair (opentoonz_info, opentoonz_live). Conventions are mixed but each name remains readable and guessable.

    Tool Count2/5

    59 tools is far past the point where an agent can survey the surface reliably, and several could be merged (draw/stroke, physics_bounce/physics_jump, camera_move/camera_follow). While the domain — a full 2D animation studio — legitimately spans modelling, rigging, animation, fx, and rendering, the set is too large to navigate without heavy documentation.

    Completeness4/5

    The lifecycle is unusually thorough: scene create/import/settings, layers and pegs, drawing, inbetweening, keyframes, character rigs, physics, camera, fx, render, plus learning and feedback loops. Gaps are minor — no delete/rename scene, no part deletion or library curation, and no audio import even though lip_sync exists.

    Maintenance

    ActivityMaintained
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Enables AI assistants to operate Adobe After Effects with the dexterity of an editor: reading projects, creating and rigging layers, setting real velocity curves, animating text, building native SVG-based shapes, applying effects, expressions, masks, and viewing render snapshots to verify results.
      17
      18 npm
      1
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI agents to drive OpenToonz headlessly through MCP tools for creating workspaces and scenes, drawing or importing frames as levels, placing cells on the xsheet, and rendering frames, PNG sequences, or MP4 videos. Also exposes a generic script escape hatch for the rest of the OpenToonz JS API.
      23
      2
      MIT