[
  {
    "annotations": {
      "destructiveHint": false,
      "openWorldHint": false,
      "readOnlyHint": true,
      "title": "Read the manual"
    },
    "description": "The full Ewe Paint agent guide: concepts, every tool's behaviour, option meanings and worked recipes. Read it before a complex job.",
    "inputSchema": {
      "additionalProperties": false,
      "properties": {},
      "required": [],
      "type": "object"
    },
    "name": "guide",
    "title": "Read the manual"
  },
  {
    "annotations": {
      "destructiveHint": false,
      "openWorldHint": false,
      "readOnlyHint": true,
      "title": "Get app state"
    },
    "description": "Everything about the current session: document size, layers (index, name, visibility, opacity, blend mode, active), current tool, colour, brush/fill/wand options, selection, clipboard, undo history, zoom, plus the lists of tools, blend modes and effects with their parameters.",
    "inputSchema": {
      "additionalProperties": false,
      "properties": {},
      "required": [],
      "type": "object"
    },
    "name": "get_state",
    "title": "Get app state"
  },
  {
    "annotations": {
      "destructiveHint": false,
      "openWorldHint": false,
      "readOnlyHint": false,
      "title": "New document"
    },
    "description": "Start a new image with a single Background layer. Discards the current document and its undo history.",
    "inputSchema": {
      "additionalProperties": false,
      "properties": {
        "background": {
          "default": "white",
          "enum": [
            "white",
            "transparent"
          ],
          "type": "string"
        },
        "height": {
          "maximum": 8192,
          "minimum": 1,
          "type": "integer"
        },
        "width": {
          "maximum": 8192,
          "minimum": 1,
          "type": "integer"
        }
      },
      "required": [
        "width",
        "height"
      ],
      "type": "object"
    },
    "name": "new_document",
    "title": "New document"
  },
  {
    "annotations": {
      "destructiveHint": false,
      "openWorldHint": false,
      "readOnlyHint": false,
      "title": "Open image"
    },
    "description": "Open a PNG, JPEG, WebP, GIF, BMP or OpenEXR file, either as a new document (replacing the current one) or as a new layer above the active layer. Also added to File → Recent.",
    "inputSchema": {
      "additionalProperties": false,
      "properties": {
        "as": {
          "default": "document",
          "enum": [
            "document",
            "layer"
          ],
          "type": "string"
        },
        "base64": {
          "description": "Image file bytes, base64 — instead of path",
          "type": "string"
        },
        "name": {
          "description": "File name to use with base64, e.g. photo.png",
          "type": "string"
        },
        "path": {
          "description": "Absolute path of the image file",
          "type": "string"
        }
      },
      "required": [],
      "type": "object"
    },
    "name": "open_image",
    "title": "Open image"
  },
  {
    "annotations": {
      "destructiveHint": false,
      "openWorldHint": false,
      "readOnlyHint": false,
      "title": "Save image"
    },
    "description": "Write the flattened image (or one layer) to a file. The format follows the extension (.png, .jpg/.jpeg, .webp) unless format is given. JPEG is flattened over white. Use this to deliver results.",
    "inputSchema": {
      "additionalProperties": false,
      "properties": {
        "background": {
          "description": "What shows through transparent pixels",
          "enum": [
            "transparent",
            "white",
            "checker"
          ],
          "type": "string"
        },
        "format": {
          "enum": [
            "png",
            "jpeg",
            "webp"
          ],
          "type": "string"
        },
        "layer": {
          "description": "Save only this layer instead of the flattened image",
          "minimum": 0,
          "type": "integer"
        },
        "max_size": {
          "description": "Downscale so the longer side is at most this",
          "maximum": 8192,
          "minimum": 16,
          "type": "integer"
        },
        "path": {
          "description": "Absolute output path; parent folder must exist; overwrites",
          "type": "string"
        },
        "quality": {
          "default": 0.92,
          "description": "JPEG/WebP quality",
          "maximum": 1,
          "minimum": 0,
          "type": "number"
        },
        "region": {
          "description": "Crop to this document rectangle",
          "properties": {
            "height": {
              "type": "integer"
            },
            "width": {
              "type": "integer"
            },
            "x": {
              "type": "integer"
            },
            "y": {
              "type": "integer"
            }
          },
          "required": [
            "x",
            "y",
            "width",
            "height"
          ],
          "type": "object"
        }
      },
      "required": [
        "path"
      ],
      "type": "object"
    },
    "name": "save_image",
    "title": "Save image"
  },
  {
    "annotations": {
      "destructiveHint": false,
      "openWorldHint": false,
      "readOnlyHint": true,
      "title": "View image"
    },
    "description": "Look at the canvas: returns the flattened image (or one layer, or a region) as a picture. Transparent areas show a checkerboard by default. Use after edits to check the result.",
    "inputSchema": {
      "additionalProperties": false,
      "properties": {
        "background": {
          "description": "What shows through transparent pixels",
          "enum": [
            "transparent",
            "white",
            "checker"
          ],
          "type": "string"
        },
        "layer": {
          "description": "Show only this layer",
          "minimum": 0,
          "type": "integer"
        },
        "max_size": {
          "default": 1024,
          "description": "Longer side of the returned picture",
          "maximum": 4096,
          "minimum": 16,
          "type": "integer"
        },
        "region": {
          "description": "Crop to this document rectangle",
          "properties": {
            "height": {
              "type": "integer"
            },
            "width": {
              "type": "integer"
            },
            "x": {
              "type": "integer"
            },
            "y": {
              "type": "integer"
            }
          },
          "required": [
            "x",
            "y",
            "width",
            "height"
          ],
          "type": "object"
        }
      },
      "required": [],
      "type": "object"
    },
    "name": "view_image",
    "title": "View image"
  },
  {
    "annotations": {
      "destructiveHint": false,
      "openWorldHint": false,
      "readOnlyHint": false,
      "title": "Recent files"
    },
    "description": "List File → Recent, or reopen one of its entries as the document.",
    "inputSchema": {
      "additionalProperties": false,
      "properties": {
        "action": {
          "default": "list",
          "enum": [
            "list",
            "open"
          ],
          "type": "string"
        },
        "index": {
          "description": "Entry to open (0 = most recent)",
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [],
      "type": "object"
    },
    "name": "recent_files",
    "title": "Recent files"
  },
  {
    "annotations": {
      "destructiveHint": false,
      "openWorldHint": false,
      "readOnlyHint": false,
      "title": "Set colour"
    },
    "description": "Set the current paint colour and/or its opacity.",
    "inputSchema": {
      "additionalProperties": false,
      "properties": {
        "alpha": {
          "maximum": 1,
          "minimum": 0,
          "type": "number"
        },
        "color": {
          "description": "#rgb, #rrggbb, #rrggbbaa, rgb()/rgba() or a CSS colour name",
          "type": "string"
        }
      },
      "required": [],
      "type": "object"
    },
    "name": "set_color",
    "title": "Set colour"
  },
  {
    "annotations": {
      "destructiveHint": false,
      "openWorldHint": false,
      "readOnlyHint": false,
      "title": "Set tool options"
    },
    "description": "Change any toolstrip option: brush size/hardness/flow/style, fill mode and tolerance, magic wand tolerance and sampling. Settings persist for later tools.",
    "inputSchema": {
      "additionalProperties": false,
      "properties": {
        "brush_style": {
          "enum": [
            "smooth",
            "chalk"
          ],
          "type": "string"
        },
        "fill_mode": {
          "description": "contiguous floods the connected region; global recolours every matching pixel",
          "enum": [
            "contiguous",
            "global"
          ],
          "type": "string"
        },
        "fill_tolerance": {
          "maximum": 128,
          "minimum": 0,
          "type": "integer"
        },
        "flow": {
          "maximum": 100,
          "minimum": 1,
          "type": "integer"
        },
        "hardness": {
          "maximum": 100,
          "minimum": 0,
          "type": "integer"
        },
        "size": {
          "maximum": 250,
          "minimum": 1,
          "type": "integer"
        },
        "wand_sample_merged": {
          "description": "Magic wand reads all visible layers (true) or only the active layer",
          "type": "boolean"
        },
        "wand_tolerance": {
          "maximum": 128,
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [],
      "type": "object"
    },
    "name": "set_options",
    "title": "Set tool options"
  },
  {
    "annotations": {
      "destructiveHint": false,
      "openWorldHint": false,
      "readOnlyHint": false,
      "title": "Select tool"
    },
    "description": "Make a tool current in the toolbar (brush, chalk, eraser, line, curve, rect, ellipse, fill, eyedropper, move, pan, select, lasso, wand). Only needed before press_key or to leave the UI in a given state; the drawing tools select their own tool.",
    "inputSchema": {
      "additionalProperties": false,
      "properties": {
        "tool": {
          "type": "string"
        }
      },
      "required": [
        "tool"
      ],
      "type": "object"
    },
    "name": "select_tool",
    "title": "Select tool"
  },
  {
    "annotations": {
      "destructiveHint": false,
      "openWorldHint": false,
      "readOnlyHint": false,
      "title": "Paint stroke"
    },
    "description": "Paint a freehand stroke through the points with the brush, chalk or eraser, exactly as a mouse drag would (spacing, pressure-free dabs, clipped to the selection). One undo step.",
    "inputSchema": {
      "additionalProperties": false,
      "properties": {
        "alpha": {
          "description": "Paint opacity",
          "maximum": 1,
          "minimum": 0,
          "type": "number"
        },
        "brush_style": {
          "description": "smooth, or grainy chalk texture",
          "enum": [
            "smooth",
            "chalk"
          ],
          "type": "string"
        },
        "color": {
          "description": "Paint colour: #rgb, #rrggbb, #rrggbbaa, rgb()/rgba() or a CSS colour name",
          "type": "string"
        },
        "flow": {
          "description": "Paint deposited per dab, %",
          "maximum": 100,
          "minimum": 1,
          "type": "integer"
        },
        "hardness": {
          "description": "Edge hardness %, 0 = soft airbrush, 100 = crisp",
          "maximum": 100,
          "minimum": 0,
          "type": "integer"
        },
        "layer": {
          "description": "Make this layer active first (0 = bottom)",
          "minimum": 0,
          "type": "integer"
        },
        "points": {
          "description": "Stroke path; a single point paints one dab",
          "items": {
            "description": "[x, y] or {\"x\": x, \"y\": y} in document pixels",
            "oneOf": [
              {
                "items": {
                  "type": "number"
                },
                "maxItems": 2,
                "minItems": 2,
                "type": "array"
              },
              {
                "properties": {
                  "x": {
                    "type": "number"
                  },
                  "y": {
                    "type": "number"
                  }
                },
                "required": [
                  "x",
                  "y"
                ],
                "type": "object"
              }
            ]
          },
          "minItems": 1,
          "type": "array"
        },
        "size": {
          "description": "Brush diameter in pixels (also outline width for shapes)",
          "maximum": 250,
          "minimum": 1,
          "type": "integer"
        },
        "tool": {
          "default": "brush",
          "enum": [
            "brush",
            "chalk",
            "eraser"
          ],
          "type": "string"
        }
      },
      "required": [
        "points"
      ],
      "type": "object"
    },
    "name": "draw_stroke",
    "title": "Paint stroke"
  },
  {
    "annotations": {
      "destructiveHint": false,
      "openWorldHint": false,
      "readOnlyHint": false,
      "title": "Draw line or curve"
    },
    "description": "Draw a straight polyline through the points, or a smooth curve through them with curved: true, using the brush settings. One undo step.",
    "inputSchema": {
      "additionalProperties": false,
      "properties": {
        "alpha": {
          "description": "Paint opacity",
          "maximum": 1,
          "minimum": 0,
          "type": "number"
        },
        "brush_style": {
          "description": "smooth, or grainy chalk texture",
          "enum": [
            "smooth",
            "chalk"
          ],
          "type": "string"
        },
        "color": {
          "description": "Paint colour: #rgb, #rrggbb, #rrggbbaa, rgb()/rgba() or a CSS colour name",
          "type": "string"
        },
        "curved": {
          "default": false,
          "type": "boolean"
        },
        "flow": {
          "description": "Paint deposited per dab, %",
          "maximum": 100,
          "minimum": 1,
          "type": "integer"
        },
        "hardness": {
          "description": "Edge hardness %, 0 = soft airbrush, 100 = crisp",
          "maximum": 100,
          "minimum": 0,
          "type": "integer"
        },
        "layer": {
          "description": "Make this layer active first (0 = bottom)",
          "minimum": 0,
          "type": "integer"
        },
        "points": {
          "description": "Vertices / curve control points, in order",
          "items": {
            "description": "[x, y] or {\"x\": x, \"y\": y} in document pixels",
            "oneOf": [
              {
                "items": {
                  "type": "number"
                },
                "maxItems": 2,
                "minItems": 2,
                "type": "array"
              },
              {
                "properties": {
                  "x": {
                    "type": "number"
                  },
                  "y": {
                    "type": "number"
                  }
                },
                "required": [
                  "x",
                  "y"
                ],
                "type": "object"
              }
            ]
          },
          "minItems": 2,
          "type": "array"
        },
        "size": {
          "description": "Brush diameter in pixels (also outline width for shapes)",
          "maximum": 250,
          "minimum": 1,
          "type": "integer"
        }
      },
      "required": [
        "points"
      ],
      "type": "object"
    },
    "name": "draw_line",
    "title": "Draw line or curve"
  },
  {
    "annotations": {
      "destructiveHint": false,
      "openWorldHint": false,
      "readOnlyHint": false,
      "title": "Draw shape"
    },
    "description": "Draw a rectangle or an ellipse inscribed in the given box, outlined with the current brush. For a filled shape, select it with select (rect/ellipse) and use fill or a large stroke. One undo step.",
    "inputSchema": {
      "additionalProperties": false,
      "properties": {
        "alpha": {
          "description": "Paint opacity",
          "maximum": 1,
          "minimum": 0,
          "type": "number"
        },
        "brush_style": {
          "description": "smooth, or grainy chalk texture",
          "enum": [
            "smooth",
            "chalk"
          ],
          "type": "string"
        },
        "color": {
          "description": "Paint colour: #rgb, #rrggbb, #rrggbbaa, rgb()/rgba() or a CSS colour name",
          "type": "string"
        },
        "flow": {
          "description": "Paint deposited per dab, %",
          "maximum": 100,
          "minimum": 1,
          "type": "integer"
        },
        "hardness": {
          "description": "Edge hardness %, 0 = soft airbrush, 100 = crisp",
          "maximum": 100,
          "minimum": 0,
          "type": "integer"
        },
        "height": {
          "exclusiveMinimum": 0,
          "type": "number"
        },
        "layer": {
          "description": "Make this layer active first (0 = bottom)",
          "minimum": 0,
          "type": "integer"
        },
        "shape": {
          "enum": [
            "rect",
            "ellipse"
          ],
          "type": "string"
        },
        "size": {
          "description": "Brush diameter in pixels (also outline width for shapes)",
          "maximum": 250,
          "minimum": 1,
          "type": "integer"
        },
        "width": {
          "exclusiveMinimum": 0,
          "type": "number"
        },
        "x": {
          "type": "number"
        },
        "y": {
          "type": "number"
        }
      },
      "required": [
        "shape",
        "x",
        "y",
        "width",
        "height"
      ],
      "type": "object"
    },
    "name": "draw_shape",
    "title": "Draw shape"
  },
  {
    "annotations": {
      "destructiveHint": false,
      "openWorldHint": false,
      "readOnlyHint": false,
      "title": "Paint bucket"
    },
    "description": "Flood fill from a pixel with the paint colour (contiguous region, or every similar pixel with fill_mode global), limited to the selection. With an active selection and a uniform area, this fills the selection's shape.",
    "inputSchema": {
      "additionalProperties": false,
      "properties": {
        "alpha": {
          "description": "Paint opacity",
          "maximum": 1,
          "minimum": 0,
          "type": "number"
        },
        "brush_style": {
          "description": "smooth, or grainy chalk texture",
          "enum": [
            "smooth",
            "chalk"
          ],
          "type": "string"
        },
        "color": {
          "description": "Paint colour: #rgb, #rrggbb, #rrggbbaa, rgb()/rgba() or a CSS colour name",
          "type": "string"
        },
        "fill_mode": {
          "enum": [
            "contiguous",
            "global"
          ],
          "type": "string"
        },
        "fill_tolerance": {
          "maximum": 128,
          "minimum": 0,
          "type": "integer"
        },
        "flow": {
          "description": "Paint deposited per dab, %",
          "maximum": 100,
          "minimum": 1,
          "type": "integer"
        },
        "hardness": {
          "description": "Edge hardness %, 0 = soft airbrush, 100 = crisp",
          "maximum": 100,
          "minimum": 0,
          "type": "integer"
        },
        "layer": {
          "description": "Make this layer active first (0 = bottom)",
          "minimum": 0,
          "type": "integer"
        },
        "size": {
          "description": "Brush diameter in pixels (also outline width for shapes)",
          "maximum": 250,
          "minimum": 1,
          "type": "integer"
        },
        "x": {
          "type": "integer"
        },
        "y": {
          "type": "integer"
        }
      },
      "required": [
        "x",
        "y"
      ],
      "type": "object"
    },
    "name": "fill",
    "title": "Paint bucket"
  },
  {
    "annotations": {
      "destructiveHint": false,
      "openWorldHint": false,
      "readOnlyHint": false,
      "title": "Eyedropper"
    },
    "description": "Sample the flattened image at a pixel and make it the paint colour (transparent pixels are ignored, as in the app).",
    "inputSchema": {
      "additionalProperties": false,
      "properties": {
        "x": {
          "type": "integer"
        },
        "y": {
          "type": "integer"
        }
      },
      "required": [
        "x",
        "y"
      ],
      "type": "object"
    },
    "name": "pick_color",
    "title": "Eyedropper"
  },
  {
    "annotations": {
      "destructiveHint": false,
      "openWorldHint": false,
      "readOnlyHint": true,
      "title": "Read pixel"
    },
    "description": "Read the flattened colour and alpha at a pixel without changing anything.",
    "inputSchema": {
      "additionalProperties": false,
      "properties": {
        "x": {
          "type": "integer"
        },
        "y": {
          "type": "integer"
        }
      },
      "required": [
        "x",
        "y"
      ],
      "type": "object"
    },
    "name": "get_pixel",
    "title": "Read pixel"
  },
  {
    "annotations": {
      "destructiveHint": false,
      "openWorldHint": false,
      "readOnlyHint": false,
      "title": "Select"
    },
    "description": "Set the selection that scopes every later edit: rect or ellipse (box), lasso (polygon points), wand (magic wand at x,y with tolerance), all, or none to clear it. Replaces any previous selection, except the wand which stays inside an existing rect/lasso selection.",
    "inputSchema": {
      "additionalProperties": false,
      "properties": {
        "height": {
          "type": "number"
        },
        "mode": {
          "enum": [
            "rect",
            "ellipse",
            "lasso",
            "wand",
            "all",
            "none"
          ],
          "type": "string"
        },
        "points": {
          "description": "lasso polygon",
          "items": {
            "description": "[x, y] or {\"x\": x, \"y\": y} in document pixels",
            "oneOf": [
              {
                "items": {
                  "type": "number"
                },
                "maxItems": 2,
                "minItems": 2,
                "type": "array"
              },
              {
                "properties": {
                  "x": {
                    "type": "number"
                  },
                  "y": {
                    "type": "number"
                  }
                },
                "required": [
                  "x",
                  "y"
                ],
                "type": "object"
              }
            ]
          },
          "minItems": 3,
          "type": "array"
        },
        "sample_merged": {
          "description": "wand reads all layers (default from options)",
          "type": "boolean"
        },
        "tolerance": {
          "description": "wand colour tolerance",
          "maximum": 128,
          "minimum": 0,
          "type": "integer"
        },
        "width": {
          "type": "number"
        },
        "x": {
          "type": "number"
        },
        "y": {
          "type": "number"
        }
      },
      "required": [
        "mode"
      ],
      "type": "object"
    },
    "name": "select",
    "title": "Select"
  },
  {
    "annotations": {
      "destructiveHint": false,
      "openWorldHint": false,
      "readOnlyHint": false,
      "title": "Move"
    },
    "description": "Move tool: shift the selected pixels by dx, dy on the active layer (the selection follows), or the whole layer when nothing is selected.",
    "inputSchema": {
      "additionalProperties": false,
      "properties": {
        "dx": {
          "type": "number"
        },
        "dy": {
          "type": "number"
        },
        "layer": {
          "description": "Make this layer active first",
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "dx",
        "dy"
      ],
      "type": "object"
    },
    "name": "move",
    "title": "Move"
  },
  {
    "annotations": {
      "destructiveHint": false,
      "openWorldHint": false,
      "readOnlyHint": false,
      "title": "Raw tool gesture"
    },
    "description": "Press, drag and release any tool through the points as the mouse would, with optional Shift (square/circle constraint for rect, ellipse and select). Escape hatch for behaviour the other tools do not cover.",
    "inputSchema": {
      "additionalProperties": false,
      "properties": {
        "points": {
          "description": "Press at the first point, drag through the rest, release at the last",
          "items": {
            "description": "[x, y] or {\"x\": x, \"y\": y} in document pixels",
            "oneOf": [
              {
                "items": {
                  "type": "number"
                },
                "maxItems": 2,
                "minItems": 2,
                "type": "array"
              },
              {
                "properties": {
                  "x": {
                    "type": "number"
                  },
                  "y": {
                    "type": "number"
                  }
                },
                "required": [
                  "x",
                  "y"
                ],
                "type": "object"
              }
            ]
          },
          "minItems": 1,
          "type": "array"
        },
        "shift": {
          "default": false,
          "type": "boolean"
        },
        "tool": {
          "type": "string"
        }
      },
      "required": [
        "tool",
        "points"
      ],
      "type": "object"
    },
    "name": "tool_gesture",
    "title": "Raw tool gesture"
  },
  {
    "annotations": {
      "destructiveHint": false,
      "openWorldHint": false,
      "readOnlyHint": false,
      "title": "Layers"
    },
    "description": "Layer operations. index (if given) first makes that layer active; the action then applies to the active layer: add (new empty layer above), duplicate, delete, merge_down, move_up, move_down, select, update (only set properties), clear (erase to transparent, only inside the selection if there is one). name, visible, opacity and blend_mode set properties on the resulting active layer.",
    "inputSchema": {
      "additionalProperties": false,
      "properties": {
        "action": {
          "enum": [
            "add",
            "duplicate",
            "delete",
            "merge_down",
            "move_up",
            "move_down",
            "select",
            "update",
            "clear"
          ],
          "type": "string"
        },
        "blend_mode": {
          "description": "Normal, Multiply, Screen, Overlay, Darken, Lighten, Difference, Additive, Color Burn, Color Dodge, Exclusion or Negation",
          "type": "string"
        },
        "index": {
          "minimum": 0,
          "type": "integer"
        },
        "name": {
          "type": "string"
        },
        "opacity": {
          "maximum": 1,
          "minimum": 0,
          "type": "number"
        },
        "visible": {
          "type": "boolean"
        }
      },
      "required": [
        "action"
      ],
      "type": "object"
    },
    "name": "layer",
    "title": "Layers"
  },
  {
    "annotations": {
      "destructiveHint": false,
      "openWorldHint": false,
      "readOnlyHint": false,
      "title": "Apply adjustment or effect"
    },
    "description": "Apply an Adjust/Effects menu filter to the active layer, limited to the selection if there is one. Effects and their parameters (unset ones use the dialog defaults): brightness-contrast {brightness -1..1, contrast 0..3}, hue-saturation {hue -180..180, saturation 0..2, value 0..2 (lightness)}, gaussian-blur {radius 0..64}, pixelate {cell 2..64}, invert, grayscale, sepia.",
    "inputSchema": {
      "additionalProperties": false,
      "properties": {
        "effect": {
          "type": "string"
        },
        "params": {
          "additionalProperties": {
            "type": "number"
          },
          "type": "object"
        }
      },
      "required": [
        "effect"
      ],
      "type": "object"
    },
    "name": "apply_effect",
    "title": "Apply adjustment or effect"
  },
  {
    "annotations": {
      "destructiveHint": false,
      "openWorldHint": false,
      "readOnlyHint": false,
      "title": "Transform image"
    },
    "description": "Whole-document operations on every layer: flip_horizontal, flip_vertical, rotate_cw, rotate_ccw, resize (scale the image; give width and/or height, the other keeps the aspect ratio) and canvas_size (crop or extend the canvas without scaling, anchored to keep content at the anchor).",
    "inputSchema": {
      "additionalProperties": false,
      "properties": {
        "anchor": {
          "default": "center",
          "enum": [
            "top-left",
            "top",
            "top-right",
            "left",
            "center",
            "right",
            "bottom-left",
            "bottom",
            "bottom-right"
          ],
          "type": "string"
        },
        "height": {
          "maximum": 8192,
          "minimum": 1,
          "type": "integer"
        },
        "operation": {
          "enum": [
            "flip_horizontal",
            "flip_vertical",
            "rotate_cw",
            "rotate_ccw",
            "resize",
            "canvas_size"
          ],
          "type": "string"
        },
        "width": {
          "maximum": 8192,
          "minimum": 1,
          "type": "integer"
        }
      },
      "required": [
        "operation"
      ],
      "type": "object"
    },
    "name": "transform",
    "title": "Transform image"
  },
  {
    "annotations": {
      "destructiveHint": false,
      "openWorldHint": false,
      "readOnlyHint": false,
      "title": "Clipboard"
    },
    "description": "copy (selection on the active layer), copy_merged (selection across all visible layers), cut, or paste. Paste puts the clipboard on a NEW top layer, selected and with the Move tool active, centred on center_x/center_y or else at the copied position. source system pastes from the Windows clipboard instead.",
    "inputSchema": {
      "additionalProperties": false,
      "properties": {
        "action": {
          "enum": [
            "copy",
            "copy_merged",
            "cut",
            "paste"
          ],
          "type": "string"
        },
        "center_x": {
          "type": "number"
        },
        "center_y": {
          "type": "number"
        },
        "source": {
          "default": "internal",
          "enum": [
            "internal",
            "system"
          ],
          "type": "string"
        }
      },
      "required": [
        "action"
      ],
      "type": "object"
    },
    "name": "clipboard",
    "title": "Clipboard"
  },
  {
    "annotations": {
      "destructiveHint": false,
      "openWorldHint": false,
      "readOnlyHint": false,
      "title": "Undo history"
    },
    "description": "list the undo history, undo, redo, or jump to an entry (index into entries; -1 = before the first edit).",
    "inputSchema": {
      "additionalProperties": false,
      "properties": {
        "action": {
          "enum": [
            "list",
            "undo",
            "redo",
            "jump"
          ],
          "type": "string"
        },
        "index": {
          "minimum": -1,
          "type": "integer"
        }
      },
      "required": [
        "action"
      ],
      "type": "object"
    },
    "name": "history",
    "title": "Undo history"
  },
  {
    "annotations": {
      "destructiveHint": false,
      "openWorldHint": false,
      "readOnlyHint": false,
      "title": "View"
    },
    "description": "Change how the window shows the document for the user: zoom factor (1 = 100%), fit to window, cursor size. Does not change the image.",
    "inputSchema": {
      "additionalProperties": false,
      "properties": {
        "cursor_size": {
          "enum": [
            "normal",
            "large",
            "extra-large"
          ],
          "type": "string"
        },
        "fit": {
          "type": "boolean"
        },
        "zoom": {
          "maximum": 16,
          "minimum": 0.05,
          "type": "number"
        }
      },
      "required": [],
      "type": "object"
    },
    "name": "view",
    "title": "View"
  },
  {
    "annotations": {
      "destructiveHint": false,
      "openWorldHint": false,
      "readOnlyHint": false,
      "title": "Press key"
    },
    "description": "Send a keyboard shortcut to the app, e.g. Enter (finish a pending line), Escape (cancel, clear selection, pan tool), b/h/e/g/i/l/c/r/o/m/s/k/w (tools), [ and ] (brush size), ctrl+z.",
    "inputSchema": {
      "additionalProperties": false,
      "properties": {
        "alt": {
          "type": "boolean"
        },
        "ctrl": {
          "type": "boolean"
        },
        "key": {
          "type": "string"
        },
        "shift": {
          "type": "boolean"
        }
      },
      "required": [
        "key"
      ],
      "type": "object"
    },
    "name": "press_key",
    "title": "Press key"
  },
  {
    "annotations": {
      "destructiveHint": false,
      "openWorldHint": false,
      "readOnlyHint": false,
      "title": "Run JavaScript"
    },
    "description": "Run JavaScript in the app page as the body of an async function with (app, hooks, call) in scope; return a JSON-serialisable value. app is the live application object (layers, compositor, history, state, toolManager…). Last resort for anything the other tools cannot do.",
    "inputSchema": {
      "additionalProperties": false,
      "properties": {
        "code": {
          "type": "string"
        }
      },
      "required": [
        "code"
      ],
      "type": "object"
    },
    "name": "run_js",
    "title": "Run JavaScript"
  },
  {
    "name": "agent_control",
    "description": "Enable or disable this session HTTP access. Stdio remains available.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "enabled": {
          "type": "boolean"
        }
      },
      "required": [
        "enabled"
      ],
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "openWorldHint": false
    }
  }
]
