Skip to content
maskostudioDocs

All pages

  • Overview/docs/use-cases
  • Mobile app/docs/use-cases#mobile
  • Website/docs/use-cases#website
  • Desktop/docs/use-cases#desktop
  • AI agents/docs/use-cases#agents
  • Videos/docs/use-cases#videos
  • Brand/docs/use-cases#brand
  • Start building/docs/ai-agents
  • Set up once/docs/ai-agents#set-up-once
  • Ask in plain words/docs/ai-agents#ask-in-plain-words
  • What your agent does/docs/ai-agents#what-your-agent-does
  • MCP server/docs/mcp
  • Agent guide: create a mascot/docs/ai-agents/create-mascot
  • Agent guide: animate a mascot/docs/ai-agents/animate-mascot
  • Agent guide: interactive mascot/docs/ai-agents/build-interactive-mascot
  • Agent guide: website or app/docs/ai-agents/integrate-mascot
  • Agent guide: desktop pet/docs/ai-agents/desktop-pet
  • Masko Agent/docs/ai-agents/masko-agent
  • Masko Agent canvas/docs/ai-agents/masko-agent-canvas
  • Masko for Cursor/docs/ai-tools/cursor
  • Masko in ChatGPT/docs/ai-tools/chatgpt
  • Masko in Lovable/docs/ai-tools/lovable
  • Masko in Devin/docs/ai-tools/devin
  • Masko in n8n/docs/ai-tools/n8n
  • Masko in Hermes Agent/docs/ai-tools/hermes
  • Masko in OpenClaw/docs/ai-tools/openclaw
  • Start here/docs/tutorials#start-here
  • All tutorials/docs/tutorials
  • Create your first mascot/docs/tutorials/first-mascot
  • Create an animated character/docs/tutorials/first-animation
  • Make a character talk/docs/tutorials/make-it-talk
  • Put your mascot on your website/docs/tutorials/mascot-on-your-website
  • Guide onboarding with a talking mascot/docs/tutorials/web-onboarding-mascot
  • Add a mascot that celebrates progress and welcomes users back/docs/tutorials/web-progress-companion
  • Add a talking support mascot in the bottom right/docs/tutorials/web-support-mascot
  • Show a mascot while your AI thinks/docs/tutorials/ai-loading-mascot
  • Make your own mascot for Masko Agent/docs/tutorials/masko-agent-mascot
  • Give your AI agent a face/docs/tutorials/ai-agent-face
  • Animate the mascot you already have/docs/tutorials/animate-your-mascot
  • How to make Telegram stickers/docs/tutorials/telegram-stickers
  • How to make Discord stickers/docs/tutorials/discord-stickers
  • Quickstart: your first animation/docs/quickstart
  • Terminal quickstart/docs/terminal
  • API keys and workspaces/docs/authentication
  • CLI browser login/docs/authentication/cli
  • How mascots work/docs/how-mascots-work
  • Credits and costs/docs/credits
  • From text/docs/create/from-text
  • From an image/docs/create/from-image
  • From a website/docs/create/from-website
  • From a brand book/docs/create/from-brand-book
  • Reference images/docs/manage/references
  • Props/docs/manage/props
  • What you can generate/docs/generation
  • Pose-to-animation walkthrough/docs/generate/workflow
  • Images and poses/docs/generate/images
  • Animations/docs/generate/animations
  • Talking animations/docs/generate/talking
  • Sounds/docs/generate/sounds
  • Motion/docs/generate/motion
  • Animation presets/docs/generate/presets
  • Write good requests/docs/generate/requests
  • Logos, backgrounds and stickers/docs/generate/design-assets
  • Cursor follower/docs/generate/cursor-follower
  • Batch generation/docs/generate/batch
  • Image and video exports/docs/manage/media-exports
  • Canvases and releases/docs/canvas
  • Build a canvas/docs/canvas/build
  • Canvas templates/docs/canvas/templates
  • Generate canvas assets/docs/canvas/generate-all
  • Export a canvas/docs/canvas/export
  • Overview and demo/docs/player
  • Play one animation/docs/player/one-animation
  • Play a canvas/docs/player/canvas
  • Ship in an app with an app key/docs/player/app-keys
  • Play on an ESP32 board/docs/player/esp32
  • Hosting and file formats/docs/generate/cdn
  • File sizes/docs/generate/file-sizes
  • Float a mascot on your Mac/docs/integrations/desktop
  • Jobs and polling/docs/manage/jobs
  • Webhooks/docs/manage/webhooks
  • Manage mascots and assets/docs/manage/collections
  • All endpoints/docs/reference
  • Requests and responses/docs/reference/conventions
  • Errors and recovery/docs/reference/errors
  • Command line reference/docs/terminal/commands
  • TypeScript SDK/docs/sdk/typescript
  • Changelog/docs/reference/changelog
  • Migrate to mascots and canvases/docs/manage/studio-migration
Get an API key
Documentation

Masko Agent canvas

Masko Agent plays a mascot's canvas: its poses, the moves between them and the rules that pick them. Masko Agent never chooses an animation itself. It turns on and off a few named inputs as your agents work and as you touch the mascot, and the canvas decides what to play. A mascot reacts to exactly the inputs its canvas uses; an input it does not use is skipped.

What your agents turn on

Masko Agent follows Claude Code, Codex, Cursor, Kimi, Grok, Hermes and OpenCode. Every connected session sets the same inputs.

InputOn whileHow long
behavior::workingan agent's turn runsuntil the turn ends
behavior::attentionan agent waits for you: a permission or a questionuntil you answer
behavior::celebratea turn just finishedabout 4 seconds, played once
behavior::errora turn just failedabout 8 seconds
behavior::waitingan agent compacts its conversationuntil it is done
action::thinkinginside a turn, between two toolsuntil the next tool starts
action::readingthe agent reads files (Read, Grep, Glob, LS and their kind)until the read ends
action::tool:…a tool runs, see belowuntil the tool ends
behavior::restnone of the behaviors above is onuse it to go back to idle

One animation per tool

While a tool runs, Masko Agent turns on the most precise tool input your canvas has, and only that one:

  1. action::tool:<server>.<tool> for one tool of an MCP server, for example action::tool:masko.generate_canvas or action::tool:linear.create_issue.
  2. action::tool:<server> for any tool of that server, for example action::tool:masko.
  3. action::tool:<tool> for a built-in tool, for example action::tool:bash or action::tool:edit.

So a canvas can give one Masko tool its own animation and all the other Masko tools another. A tool without an animation of its own keeps the mascot working.

What you turn on

InputOn while
behavior::heldContactyou hold the mascot with the mouse
behavior::heldShakeyou shake it while you hold it

The poses a mascot needs

A mascot that reacts well to agents needs few poses. This is the canvas Masko Agent is made for:

PoseEntered whenLeft when
idlethe canvas starts
workingbehavior::workingbehavior::rest
attentionbehavior::attentionbehavior::rest
celebratebehavior::celebrateafter its loop, back to idle
errorbehavior::errorafter its loop, back to idle
heldbehavior::heldContactbehavior::heldContact turns off
shakenbehavior::heldShakebehavior::heldShake turns off

Each pose needs a loop and a move in from idle; a pose left on behavior::rest also needs a move back. Tool, thinking and reading poses are extras: add them once the base works.

This base is the built-in canvas template masko-agent-7state. With the REST API, apply it to a new canvas to start from these seven poses and their moves.

Several inputs are often on at once, for example an agent working while you hold the mascot. Any State moves with priorities decide which pose wins, not the order the inputs came in. Ko, Masko's own mascot, uses: error 80, shaken 79, held 74, attention 60, Masko tools 55, celebrate 50, and working with no priority, so everything else wins over working.

Make it with your agent

With the Masko MCP server connected, ask in plain words:

Make a canvas for my mascot for Masko Agent: idle, working, waiting for
me, celebrate, error, held and shaken, with the inputs from
masko.ai/docs/ai-agents/masko-agent-canvas. Tell me the cost first.
Then release it and add it to Masko Agent on this computer.

The whole path, from signing in to Masko to the mascot on your screen, is the tutorial Make your own mascot for Masko Agent. The agent builds the canvas with create_canvas, makes its animations with generate_canvas, releases it with release_canvas and adds it with the link from get_release_delivery (agent guide). To give a tool its own animation later, ask for one more pose on action::tool:<server>.<tool>: it costs one pose and its moves, and nothing else changes.