{"at":"2026-11-23T00:08:26.593Z","dir":"sent","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","method":"server/discover","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/clientInfo":{"name":"didrun-lab","version":"0.1.0"},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T00:08:27.044Z","dir":"received","era":"server_discover","message":{"error":{"code":-32601,"message":"Method not found"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-23T00:08:27.195Z","dir":"sent","era":"initialize","message":{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{},"clientInfo":{"name":"didrun-lab","version":"0.1.0"},"protocolVersion":"2025-11-25"}}}
{"at":"2026-11-23T00:08:27.701Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"tools":{"listChanged":true}},"protocolVersion":"2025-11-25","serverInfo":{"name":"pixscii","version":"0.5.0"}}}}
{"at":"2026-11-23T00:08:27.701Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T00:08:27.701Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T00:08:27.708Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"description":"Search the sprite library by keyword, category, or get a random sprite. Returns a text listing of matching sprites.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"category":{"description":"Filter by category: items, tiles, effects, ui","type":"string"},"query":{"description":"Search keyword (matches id, name, category, tags)","type":"string"},"random":{"description":"Return a single random sprite","type":"boolean"}},"type":"object"},"name":"search"},{"description":"Get a sprite as a PNG image by its ID. Returns a scaled pixel art PNG.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"id":{"description":"Sprite ID (e.g. \"sword\", \"grass\", \"heart-full\")","type":"string"},"palette":{"description":"Palette ID (default \"pico8\"). Use search to see available palettes.","type":"string"},"scale":{"description":"Scale factor 1-16 (default 4). Each pixel becomes scale×scale.","maximum":16,"minimum":1,"type":"integer"}},"required":["id"],"type":"object"},"name":"get"},{"description":"Generate a procedural pixel character sprite. Same seed always produces the same character. 648 unique combinations.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"armor":{"description":"Armor type: cloth, leather, plate","enum":["cloth","leather","plate"],"type":"string"},"helm":{"description":"Helm type: hood, iron, crown","enum":["hood","iron","crown"],"type":"string"},"palette":{"description":"Palette ID (default \"pico8\")","type":"string"},"scale":{"description":"Scale factor (default 4)","maximum":16,"minimum":1,"type":"integer"},"seed":{"description":"Seed string for deterministic generation. Same seed = same character.","maxLength":200,"type":"string"},"skin":{"description":"Skin tone index 0-5","maximum":5,"minimum":0,"type":"integer"},"species":{"description":"Species: human, elf, dwarf, skeleton","enum":["human","elf","dwarf","skeleton"],"type":"string"},"weapon":{"description":"Weapon type: sword, staff, bow","enum":["sword","staff","bow"],"type":"string"}},"required":["seed"],"type":"object"},"name":"character"},{"description":"Convert an image (URL or base64) to pixel art by quantizing to a palette. Returns both the PNG and sprite data.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"height":{"description":"Target height in pixels (default 16)","maximum":64,"minimum":1,"type":"integer"},"palette":{"description":"Palette ID (default \"pico8\")","type":"string"},"scale":{"description":"Scale factor for output (default 4)","maximum":16,"minimum":1,"type":"integer"},"source":{"description":"Image URL (https://...) or base64 data URI","type":"string"},"width":{"description":"Target width in pixels (default 16)","maximum":64,"minimum":1,"type":"integer"}},"required":["source"],"type":"object"},"name":"convert"},{"description":"Create a new blank canvas for drawing. Returns canvas ID and hex grid for inspection.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"fill":{"description":"Fill color: hex char 0-F or \".\" for transparent (default \".\")","maxLength":1,"minLength":1,"type":"string"},"height":{"description":"Canvas height in pixels","maximum":256,"minimum":1,"type":"integer"},"palette":{"description":"Palette ID (default \"pico8\")","type":"string"},"width":{"description":"Canvas width in pixels","maximum":256,"minimum":1,"type":"integer"}},"required":["width","height"],"type":"object"},"name":"create"},{"description":"Set individual pixels on a canvas. Batch up to 512 pixels per call.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"canvas_id":{"description":"Canvas ID","type":"string"},"pixels":{"description":"Pixels to set","items":{"properties":{"color":{"description":"Hex char 0-F or \".\" for transparent","maxLength":1,"minLength":1,"type":"string"},"x":{"description":"X coordinate","maximum":9007199254740991,"minimum":0,"type":"integer"},"y":{"description":"Y coordinate","maximum":9007199254740991,"minimum":0,"type":"integer"}},"required":["x","y","color"],"type":"object"},"maxItems":512,"minItems":1,"type":"array"}},"required":["canvas_id","pixels"],"type":"object"},"name":"pixel"},{"description":"Draw a line between two points on a canvas using Bresenham's algorithm.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"canvas_id":{"description":"Canvas ID","type":"string"},"color":{"description":"Hex char 0-F or \".\" for transparent","maxLength":1,"minLength":1,"type":"string"},"x1":{"description":"Start X","maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"x2":{"description":"End X","maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"y1":{"description":"Start Y","maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"y2":{"description":"End Y","maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["canvas_id","x1","y1","x2","y2","color"],"type":"object"},"name":"line"},{"description":"Draw a rectangle on a canvas (outline or filled).","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"canvas_id":{"description":"Canvas ID","type":"string"},"color":{"description":"Hex char 0-F or \".\" for transparent","maxLength":1,"minLength":1,"type":"string"},"filled":{"description":"Fill the rectangle (default: false = outline only)","type":"boolean"},"h":{"description":"Height","maximum":9007199254740991,"minimum":1,"type":"integer"},"w":{"description":"Width","maximum":9007199254740991,"minimum":1,"type":"integer"},"x":{"description":"Top-left X","maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"y":{"description":"Top-left Y","maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["canvas_id","x","y","w","h","color"],"type":"object"},"name":"rect"},{"description":"Flood fill from a point on a canvas. Returns the updated grid so you can verify the result.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"canvas_id":{"description":"Canvas ID","type":"string"},"color":{"description":"Hex char 0-F or \".\" for transparent","maxLength":1,"minLength":1,"type":"string"},"x":{"description":"Start X","maximum":9007199254740991,"minimum":0,"type":"integer"},"y":{"description":"Start Y","maximum":9007199254740991,"minimum":0,"type":"integer"}},"required":["canvas_id","x","y","color"],"type":"object"},"name":"fill"},{"description":"Mirror a canvas horizontally (left half copied to right half). Returns the updated grid.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"axis_x":{"description":"X coordinate of mirror axis (default: center)","maximum":9007199254740991,"minimum":0,"type":"integer"},"canvas_id":{"description":"Canvas ID","type":"string"}},"required":["canvas_id"],"type":"object"},"name":"mirror"},{"description":"Read the current pixel state of a canvas as a hex character grid. For canvases >32px, provide x,y,w,h to inspect a region.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"canvas_id":{"description":"Canvas ID","type":"string"},"h":{"description":"Region height","maximum":9007199254740991,"minimum":1,"type":"integer"},"w":{"description":"Region width","maximum":9007199254740991,"minimum":1,"type":"integer"},"x":{"description":"Region start X (for large canvases)","maximum":9007199254740991,"minimum":0,"type":"integer"},"y":{"description":"Region start Y (for large canvases)","maximum":9007199254740991,"minimum":0,"type":"integer"}},"required":["canvas_id"],"type":"object"},"name":"inspect"},{"description":"Revert the last drawing operation on a canvas. Single-step undo.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"canvas_id":{"description":"Canvas ID","type":"string"}},"required":["canvas_id"],"type":"object"},"name":"undo"},{"description":"Export a canvas as a scaled PNG image.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"canvas_id":{"description":"Canvas ID","type":"string"},"scale":{"description":"Scale factor (default 4)","maximum":16,"minimum":1,"type":"integer"}},"required":["canvas_id"],"type":"object"},"name":"export"},{"description":"Compose multiple sprites into a single scene. Place sprites at specific x,y positions on a canvas.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"height":{"description":"Canvas height in pixels","maximum":256,"minimum":16,"type":"integer"},"layers":{"description":"Layers to compose (back to front)","items":{"properties":{"sprite":{"description":"Sprite ID","type":"string"},"x":{"description":"X position on canvas","maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"y":{"description":"Y position on canvas","maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["sprite","x","y"],"type":"object"},"maxItems":20,"minItems":1,"type":"array"},"palette":{"description":"Palette ID (default \"pico8\")","type":"string"},"scale":{"description":"Scale factor (default 4)","maximum":16,"minimum":1,"type":"integer"},"width":{"description":"Canvas width in pixels","maximum":256,"minimum":16,"type":"integer"}},"required":["layers","width","height"],"type":"object"},"name":"compose"},{"description":"Build a tilemap from a 2D grid of tile IDs. Each cell becomes a 16x16 tile.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"grid":{"description":"2D array of tile IDs (e.g. [[\"grass\",\"grass\",\"water\"],[\"grass\",\"door\",\"grass\"]])","items":{"items":{"type":"string"},"type":"array"},"maxItems":16,"minItems":1,"type":"array"},"palette":{"description":"Palette ID (default \"pico8\")","type":"string"},"scale":{"description":"Scale factor (default 4)","maximum":16,"minimum":1,"type":"integer"}},"required":["grid"],"type":"object"},"name":"tilemap"},{"description":"Stitch multiple canvases into a single PNG spritesheet. Supports horizontal, vertical, or grid layout.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"columns":{"description":"Columns for grid layout","maximum":9007199254740991,"minimum":1,"type":"integer"},"direction":{"description":"Layout direction (default \"horizontal\")","enum":["horizontal","vertical","grid"],"type":"string"},"frames":{"description":"Canvas IDs to stitch","items":{"type":"string"},"maxItems":32,"minItems":1,"type":"array"},"gap":{"description":"Pixel gap between frames (default 0)","maximum":8,"minimum":0,"type":"integer"},"palette":{"description":"Palette ID (default \"pico8\")","type":"string"},"scale":{"description":"Scale factor (default 4)","maximum":16,"minimum":1,"type":"integer"}},"required":["frames"],"type":"object"},"name":"spritesheet"},{"description":"Animate a sprite or character with pixel motion. Returns multiple PNG frames or a spritesheet.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"id":{"description":"Sprite ID to animate (use this OR seed)","type":"string"},"motion":{"description":"Motion type: idle, walk, attack, hurt, bounce, blink","enum":["idle","walk","attack","hurt","bounce","blink"],"type":"string"},"palette":{"description":"Palette ID (default \"pico8\")","type":"string"},"scale":{"description":"Scale factor (default 4)","maximum":16,"minimum":1,"type":"integer"},"seed":{"description":"Character seed to animate (use this OR id)","maxLength":200,"type":"string"}},"required":["motion"],"type":"object"},"name":"animate"},{"description":"Animate actors across a scene. Each actor has a pose cycle and a path of positions. Returns one PNG per frame.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"actors":{"description":"Actors to animate","items":{"properties":{"path":{"description":"Position per frame (frame count = longest path)","items":{"properties":{"x":{"description":"X position","maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"y":{"description":"Y position","maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["x","y"],"type":"object"},"minItems":1,"type":"array"},"poses":{"description":"Canvas IDs for pose cycle","items":{"type":"string"},"maxItems":8,"minItems":1,"type":"array"}},"required":["poses","path"],"type":"object"},"maxItems":8,"minItems":1,"type":"array"},"background":{"description":"Canvas ID for the background (omit for transparent)","type":"string"},"delay":{"description":"ms between frames (default 150)","maximum":2000,"minimum":50,"type":"integer"},"height":{"description":"Scene height in pixels","maximum":256,"minimum":16,"type":"integer"},"palette":{"description":"Palette ID (default \"pico8\")","type":"string"},"scale":{"description":"Scale factor (default 4)","maximum":16,"minimum":1,"type":"integer"},"width":{"description":"Scene width in pixels","maximum":256,"minimum":16,"type":"integer"}},"required":["width","height","actors"],"type":"object"},"name":"sequence"},{"description":"Create a full animated scene in one call. Generate characters, place them on a background, and animate them along paths. Returns multiple PNG frames.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"actors":{"description":"Actors to animate","items":{"properties":{"armor":{"enum":["cloth","leather","plate"],"type":"string"},"from":{"description":"Start position","properties":{"x":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"y":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["x","y"],"type":"object"},"helm":{"enum":["hood","iron","crown"],"type":"string"},"motion":{"description":"Motion type (default \"idle\")","enum":["idle","walk","attack","hurt","bounce","blink"],"type":"string"},"seed":{"description":"Character seed for procedural generation","maxLength":200,"type":"string"},"skin":{"maximum":5,"minimum":0,"type":"integer"},"species":{"enum":["human","elf","dwarf","skeleton"],"type":"string"},"sprite":{"description":"Sprite ID or canvas ID (use instead of seed)","type":"string"},"to":{"description":"End position","properties":{"x":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"y":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["x","y"],"type":"object"},"weapon":{"enum":["sword","staff","bow"],"type":"string"}},"required":["from","to"],"type":"object"},"maxItems":8,"minItems":1,"type":"array"},"background":{"description":"Background (omit for transparent)","properties":{"color":{"description":"Fill color: hex char 0-F","maxLength":1,"minLength":1,"type":"string"},"sprite":{"description":"Sprite ID or canvas ID as background","type":"string"},"tiles":{"description":"Tilemap grid of sprite IDs (e.g. [[\"grass\",\"stone\",\"wall\"]])","items":{"items":{"type":"string"},"type":"array"},"type":"array"}},"type":"object"},"delay":{"description":"ms between frames (default 150)","maximum":2000,"minimum":50,"type":"integer"},"frames":{"description":"Frame count (default 8)","maximum":32,"minimum":1,"type":"integer"},"height":{"description":"Scene height in pixels","maximum":256,"minimum":16,"type":"integer"},"palette":{"description":"Palette ID (default \"pico8\")","type":"string"},"scale":{"description":"Scale factor (default 4)","maximum":16,"minimum":1,"type":"integer"},"width":{"description":"Scene width in pixels","maximum":256,"minimum":16,"type":"integer"}},"required":["width","height","actors"],"type":"object"},"name":"animate_scene"},{"description":"List palettes and their named slots. Palettes that share a schema (e.g. \"scene\") use each index for the same role, so swapping between them recolors the same art for a different mood.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"schema":{"description":"Only palettes with this schema, e.g. \"scene\"","type":"string"}},"type":"object"},"name":"palettes"},{"description":"Switch a canvas to another palette. Within one schema the pixels stay and only the colors change; across schemas each color moves to the slot with the same name, or else the nearest color.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"canvas_id":{"description":"Canvas ID","type":"string"},"palette":{"description":"Target palette ID, e.g. \"scene-dusk\"","type":"string"},"scale":{"description":"Preview scale (default 4)","maximum":16,"minimum":1,"type":"integer"}},"required":["canvas_id","palette"],"type":"object"},"name":"repalette"},{"description":"Draw geometry as crisp pixel art: rect (with radius), circle, ellipse, polygon, line, curve. Fills can be a color, a dither of two colors, or a dithered gradient; filled shapes can have an outline. Draws on an existing canvas, or creates one. Write coordinates, not pixels.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"canvas_id":{"description":"Draw on this canvas. Omit to create a new one","type":"string"},"height":{"description":"New canvas height (default 64)","maximum":256,"minimum":1,"type":"integer"},"palette":{"description":"New canvas palette, e.g. \"scene-dusk\" for slot names (default \"pico8\")","type":"string"},"scale":{"description":"Preview scale (default 4)","maximum":16,"minimum":1,"type":"integer"},"shapes":{"description":"Drawn in order, later on top","items":{"oneOf":[{"properties":{"fill":{"anyOf":[{"anyOf":[{"maximum":9007199254740991,"minimum":-1,"type":"integer"},{"type":"string"}],"description":"Palette index, hex char \"0\"-\"F\" (\".\" = transparent), or a slot name like \"sky-top\" (see the palettes tool)"},{"properties":{"amount":{"description":"Share of the second color, 0-1 (default 0.5)","maximum":1,"minimum":0,"type":"number"},"dither":{"additionalItems":false,"items":[{"anyOf":[{"maximum":9007199254740991,"minimum":-1,"type":"integer"},{"type":"string"}],"description":"Palette index, hex char \"0\"-\"F\" (\".\" = transparent), or a slot name like \"sky-top\" (see the palettes tool)"},{"anyOf":[{"maximum":9007199254740991,"minimum":-1,"type":"integer"},{"type":"string"}],"description":"Palette index, hex char \"0\"-\"F\" (\".\" = transparent), or a slot name like \"sky-top\" (see the palettes tool)"}],"maxItems":2,"minItems":2,"type":"array"},"pattern":{"description":"Dither pattern (default bayer4)","enum":["bayer2","bayer4","bayer8"],"type":"string"}},"required":["dither"],"type":"object"},{"properties":{"direction":{"enum":["down","up","right","left"],"type":"string"},"gradient":{"description":"Color stops, dithered between neighbors","items":{"anyOf":[{"maximum":9007199254740991,"minimum":-1,"type":"integer"},{"type":"string"}],"description":"Palette index, hex char \"0\"-\"F\" (\".\" = transparent), or a slot name like \"sky-top\" (see the palettes tool)"},"minItems":1,"type":"array"},"pattern":{"description":"Dither pattern (default bayer4)","enum":["bayer2","bayer4","bayer8"],"type":"string"}},"required":["gradient"],"type":"object"}]},"h":{"type":"number"},"radius":{"type":"number"},"stroke":{"description":"Outline inside the edge","properties":{"color":{"anyOf":[{"maximum":9007199254740991,"minimum":-1,"type":"integer"},{"type":"string"}],"description":"Palette index, hex char \"0\"-\"F\" (\".\" = transparent), or a slot name like \"sky-top\" (see the palettes tool)"},"width":{"maximum":8,"minimum":1,"type":"integer"}},"required":["color"],"type":"object"},"type":{"const":"rect","type":"string"},"w":{"type":"number"},"x":{"type":"number"},"y":{"type":"number"}},"required":["type","x","y","w","h"],"type":"object"},{"properties":{"cx":{"type":"number"},"cy":{"type":"number"},"fill":{"anyOf":[{"anyOf":[{"maximum":9007199254740991,"minimum":-1,"type":"integer"},{"type":"string"}],"description":"Palette index, hex char \"0\"-\"F\" (\".\" = transparent), or a slot name like \"sky-top\" (see the palettes tool)"},{"properties":{"amount":{"description":"Share of the second color, 0-1 (default 0.5)","maximum":1,"minimum":0,"type":"number"},"dither":{"additionalItems":false,"items":[{"anyOf":[{"maximum":9007199254740991,"minimum":-1,"type":"integer"},{"type":"string"}],"description":"Palette index, hex char \"0\"-\"F\" (\".\" = transparent), or a slot name like \"sky-top\" (see the palettes tool)"},{"anyOf":[{"maximum":9007199254740991,"minimum":-1,"type":"integer"},{"type":"string"}],"description":"Palette index, hex char \"0\"-\"F\" (\".\" = transparent), or a slot name like \"sky-top\" (see the palettes tool)"}],"maxItems":2,"minItems":2,"type":"array"},"pattern":{"description":"Dither pattern (default bayer4)","enum":["bayer2","bayer4","bayer8"],"type":"string"}},"required":["dither"],"type":"object"},{"properties":{"direction":{"enum":["down","up","right","left"],"type":"string"},"gradient":{"description":"Color stops, dithered between neighbors","items":{"anyOf":[{"maximum":9007199254740991,"minimum":-1,"type":"integer"},{"type":"string"}],"description":"Palette index, hex char \"0\"-\"F\" (\".\" = transparent), or a slot name like \"sky-top\" (see the palettes tool)"},"minItems":1,"type":"array"},"pattern":{"description":"Dither pattern (default bayer4)","enum":["bayer2","bayer4","bayer8"],"type":"string"}},"required":["gradient"],"type":"object"}]},"r":{"exclusiveMinimum":0,"type":"number"},"stroke":{"description":"Outline inside the edge","properties":{"color":{"anyOf":[{"maximum":9007199254740991,"minimum":-1,"type":"integer"},{"type":"string"}],"description":"Palette index, hex char \"0\"-\"F\" (\".\" = transparent), or a slot name like \"sky-top\" (see the palettes tool)"},"width":{"maximum":8,"minimum":1,"type":"integer"}},"required":["color"],"type":"object"},"type":{"const":"circle","type":"string"}},"required":["type","cx","cy","r"],"type":"object"},{"properties":{"cx":{"type":"number"},"cy":{"type":"number"},"fill":{"anyOf":[{"anyOf":[{"maximum":9007199254740991,"minimum":-1,"type":"integer"},{"type":"string"}],"description":"Palette index, hex char \"0\"-\"F\" (\".\" = transparent), or a slot name like \"sky-top\" (see the palettes tool)"},{"properties":{"amount":{"description":"Share of the second color, 0-1 (default 0.5)","maximum":1,"minimum":0,"type":"number"},"dither":{"additionalItems":false,"items":[{"anyOf":[{"maximum":9007199254740991,"minimum":-1,"type":"integer"},{"type":"string"}],"description":"Palette index, hex char \"0\"-\"F\" (\".\" = transparent), or a slot name like \"sky-top\" (see the palettes tool)"},{"anyOf":[{"maximum":9007199254740991,"minimum":-1,"type":"integer"},{"type":"string"}],"description":"Palette index, hex char \"0\"-\"F\" (\".\" = transparent), or a slot name like \"sky-top\" (see the palettes tool)"}],"maxItems":2,"minItems":2,"type":"array"},"pattern":{"description":"Dither pattern (default bayer4)","enum":["bayer2","bayer4","bayer8"],"type":"string"}},"required":["dither"],"type":"object"},{"properties":{"direction":{"enum":["down","up","right","left"],"type":"string"},"gradient":{"description":"Color stops, dithered between neighbors","items":{"anyOf":[{"maximum":9007199254740991,"minimum":-1,"type":"integer"},{"type":"string"}],"description":"Palette index, hex char \"0\"-\"F\" (\".\" = transparent), or a slot name like \"sky-top\" (see the palettes tool)"},"minItems":1,"type":"array"},"pattern":{"description":"Dither pattern (default bayer4)","enum":["bayer2","bayer4","bayer8"],"type":"string"}},"required":["gradient"],"type":"object"}]},"rx":{"exclusiveMinimum":0,"type":"number"},"ry":{"exclusiveMinimum":0,"type":"number"},"stroke":{"description":"Outline inside the edge","properties":{"color":{"anyOf":[{"maximum":9007199254740991,"minimum":-1,"type":"integer"},{"type":"string"}],"description":"Palette index, hex char \"0\"-\"F\" (\".\" = transparent), or a slot name like \"sky-top\" (see the palettes tool)"},"width":{"maximum":8,"minimum":1,"type":"integer"}},"required":["color"],"type":"object"},"type":{"const":"ellipse","type":"string"}},"required":["type","cx","cy","rx","ry"],"type":"object"},{"properties":{"fill":{"anyOf":[{"anyOf":[{"maximum":9007199254740991,"minimum":-1,"type":"integer"},{"type":"string"}],"description":"Palette index, hex char \"0\"-\"F\" (\".\" = transparent), or a slot name like \"sky-top\" (see the palettes tool)"},{"properties":{"amount":{"description":"Share of the second color, 0-1 (default 0.5)","maximum":1,"minimum":0,"type":"number"},"dither":{"additionalItems":false,"items":[{"anyOf":[{"maximum":9007199254740991,"minimum":-1,"type":"integer"},{"type":"string"}],"description":"Palette index, hex char \"0\"-\"F\" (\".\" = transparent), or a slot name like \"sky-top\" (see the palettes tool)"},{"anyOf":[{"maximum":9007199254740991,"minimum":-1,"type":"integer"},{"type":"string"}],"description":"Palette index, hex char \"0\"-\"F\" (\".\" = transparent), or a slot name like \"sky-top\" (see the palettes tool)"}],"maxItems":2,"minItems":2,"type":"array"},"pattern":{"description":"Dither pattern (default bayer4)","enum":["bayer2","bayer4","bayer8"],"type":"string"}},"required":["dither"],"type":"object"},{"properties":{"direction":{"enum":["down","up","right","left"],"type":"string"},"gradient":{"description":"Color stops, dithered between neighbors","items":{"anyOf":[{"maximum":9007199254740991,"minimum":-1,"type":"integer"},{"type":"string"}],"description":"Palette index, hex char \"0\"-\"F\" (\".\" = transparent), or a slot name like \"sky-top\" (see the palettes tool)"},"minItems":1,"type":"array"},"pattern":{"description":"Dither pattern (default bayer4)","enum":["bayer2","bayer4","bayer8"],"type":"string"}},"required":["gradient"],"type":"object"}]},"points":{"items":{"additionalItems":false,"items":[{"type":"number"},{"type":"number"}],"maxItems":2,"minItems":2,"type":"array"},"minItems":3,"type":"array"},"stroke":{"description":"Outline inside the edge","properties":{"color":{"anyOf":[{"maximum":9007199254740991,"minimum":-1,"type":"integer"},{"type":"string"}],"description":"Palette index, hex char \"0\"-\"F\" (\".\" = transparent), or a slot name like \"sky-top\" (see the palettes tool)"},"width":{"maximum":8,"minimum":1,"type":"integer"}},"required":["color"],"type":"object"},"type":{"const":"polygon","type":"string"}},"required":["type","points"],"type":"object"},{"properties":{"color":{"anyOf":[{"maximum":9007199254740991,"minimum":-1,"type":"integer"},{"type":"string"}],"description":"Palette index, hex char \"0\"-\"F\" (\".\" = transparent), or a slot name like \"sky-top\" (see the palettes tool)"},"points":{"items":{"additionalItems":false,"items":[{"type":"number"},{"type":"number"}],"maxItems":2,"minItems":2,"type":"array"},"minItems":1,"type":"array"},"type":{"const":"line","type":"string"},"width":{"maximum":32,"minimum":1,"type":"number"}},"required":["type","points","color"],"type":"object"},{"properties":{"color":{"anyOf":[{"maximum":9007199254740991,"minimum":-1,"type":"integer"},{"type":"string"}],"description":"Palette index, hex char \"0\"-\"F\" (\".\" = transparent), or a slot name like \"sky-top\" (see the palettes tool)"},"points":{"description":"3 = quadratic, 4 = cubic Bezier","items":{"additionalItems":false,"items":[{"type":"number"},{"type":"number"}],"maxItems":2,"minItems":2,"type":"array"},"maxItems":4,"minItems":3,"type":"array"},"type":{"const":"curve","type":"string"},"width":{"maximum":32,"minimum":1,"type":"number"}},"required":["type","points","color"],"type":"object"}]},"maxItems":256,"minItems":1,"type":"array"},"width":{"description":"New canvas width (default 64)","maximum":256,"minimum":1,"type":"integer"}},"required":["shapes"],"type":"object"},"name":"shapes"},{"description":"Generate a pixel landscape from a seed: sky by time of day, sun or moon, stars, clouds, mountains, hills, sea, forest, ground, rain. Uses the \"scene\" palette schema, so the same seed renders in any scene-* palette. Presets: dawn, home, school, night, sea, storm, window, forest, dusk, stars. Returns a canvas you can keep drawing on.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"height":{"description":"Default 72","maximum":256,"minimum":16,"type":"integer"},"horizon":{"description":"Horizon height from the top, 0-1 (default 0.62)","maximum":0.95,"minimum":0.1,"type":"number"},"layers":{"description":"Drawn back to front in a fixed order","items":{"enum":["sky","stars","sun","clouds","mountains","hills","sea","forest","ground","rain"],"type":"string"},"type":"array"},"palette":{"description":"A scene-* palette (default scene-<preset>, or scene-dusk)","type":"string"},"preset":{"description":"Mood preset: sets time, layers and the default palette","enum":["dawn","home","school","night","sea","storm","window","forest","dusk","stars"],"type":"string"},"scale":{"description":"Preview scale (default 4)","maximum":16,"minimum":1,"type":"integer"},"seed":{"description":"Same seed, same place","maxLength":200,"type":"string"},"time":{"enum":["dawn","noon","dusk","night"],"type":"string"},"width":{"description":"Default 128","maximum":256,"minimum":16,"type":"integer"}},"required":["seed"],"type":"object"},"name":"landscape"},{"description":"Generate a creature from a seed: symmetric robot, alien or critter from a mask (outlined, lit from the top, with eyes), or an asymmetric nebula. Endless variety, same seed same creature. Scene palette schema.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"kind":{"description":"Default alien","enum":["robot","alien","critter","nebula"],"type":"string"},"palette":{"description":"A scene-* palette (default scene-window)","type":"string"},"scale":{"description":"Preview scale (default 8)","maximum":16,"minimum":1,"type":"integer"},"seed":{"maxLength":200,"type":"string"},"size":{"description":"Even, default 24","maximum":64,"minimum":8,"type":"integer"}},"required":["seed"],"type":"object"},"name":"creature"},{"description":"Draw a 24×24 person, cat or elf at a life stage: baby, adult or old (white hair, a cane or staff, a plumper cat). The seed varies hair and clothes. Scene palette schema.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"palette":{"description":"A scene-* palette (default scene-window)","type":"string"},"scale":{"description":"Preview scale (default 8)","maximum":16,"minimum":1,"type":"integer"},"seed":{"maxLength":200,"type":"string"},"species":{"enum":["human","cat","elf"],"type":"string"},"stage":{"enum":["baby","adult","old"],"type":"string"}},"required":["species","stage"],"type":"object"},"name":"being"}]}}}
