Create an interactive canvas
create_canvasCreate a state machine that drives the mascot from app events. Templates: chatbot (inputs listening/thinking/talking booleans + greet trigger), ai_agent (status number: 0 idle, 1 working, 2 waiting, 3 done, 4 failed), onboarding (hello/success/error triggers). Or pass a custom graph. Works on clip mascots too: states play its clips (a template's working → think, listen → idle); if the canvas plays clips the character doesn't have, the error names them, make them with create_clip (60 credits each) and try again.
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": {
"id": "<id>",
"name": "<name>"
},
"name": "create_canvas"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| name | Yes | ||
| graph | No | ||
| template | No |