{"at":"2026-11-23T03:23:48.850Z","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-23T03:23:49.714Z","dir":"received","era":"server_discover","message":{"error":{"code":-32602,"data":"","message":"Invalid request parameters"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-23T03:23:49.815Z","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-23T03:23:50.676Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"experimental":{},"prompts":{"listChanged":false},"resources":{"listChanged":false,"subscribe":false},"tools":{"listChanged":false}},"instructions":"Tools for a running GIMP 3.2. The GIMP MCP plugin must be started inside GIMP\n(Tools > MCP > Start MCP Server); check_server tells you whether it is reachable.\n\nImages and layers\n- Start with new_canvas(width, height) or open_image(file_path).\n- image_index 0 is the most recently opened or created image, and indices shift when\n  images open or close. list_images shows the order; image_id stays the same.\n- Tools with an optional layer_name act on the active layer. A layer made by create_layer\n  or duplicate_layer becomes active, and list_layers marks the active layer. Pass\n  layer_name to be sure.\n\nColors\n- Give colors as hex \"#rrggbb\" (also \"#rgb\" or \"#rrggbbaa\") or one of the 16 basic names:\n  black, white, gray, silver, red, maroon, yellow, olive, lime, green, aqua, teal, blue,\n  navy, fuchsia, purple. Anything else is rejected with an error.\n\nSeeing results\n- get_state_snapshot(image_index, max_size, region) returns the image as PNG scaled to fit\n  max_size; region coordinates are image pixels. sample_color reads the visible color at a point.\n\nPainting\n- paint_stroke paints batches of brush strokes; take a snapshot between batches.\n  list_brushes lists brush names.\n\nOptions with a fixed list of values reject anything not listed, and the error names the\nvalid values. call_api runs Python inside GIMP for anything the tools do not cover.\n","protocolVersion":"2025-11-25","serverInfo":{"name":"gimp3-mcp","version":"1.30.0"}}}}
{"at":"2026-11-23T03:23:50.676Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T03:23:50.676Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T03:23:50.678Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"description":"Check whether the GIMP MCP plugin socket is reachable and responding.\n\nReturns a status dict:\n- connected: bool\n- host / port: where it tried\n- gimp_version: if connected successfully\n- error: description if not connected\n\nUse this before any other operation to verify the GIMP plugin is running.\nIf not connected, open GIMP and run Tools > MCP > Start MCP Server.\n","inputSchema":{"properties":{},"title":"check_serverArguments","type":"object"},"name":"check_server"},{"description":"Drop and re-establish the connection to the GIMP MCP plugin.\n\nUse this when:\n- GIMP was restarted after the MCP client was already running\n- The socket connection dropped mid-session\n- check_server() shows not connected but GIMP is open\n\nReturns the new connection status (same format as check_server).\n","inputSchema":{"properties":{},"title":"restart_serverArguments","type":"object"},"name":"restart_server"},{"description":"Create a new blank canvas in GIMP and open it in a display window.\n\nParameters:\n- width: Canvas width in pixels\n- height: Canvas height in pixels\n- name: Image name reported by list_images, also used for the background layer\n  (default: \"Untitled\")\n- color_mode: \"RGB\" (default), \"RGBA\", \"GRAY\", \"GRAYA\"\n- fill: Background: \"white\" (default), \"transparent\", or a color as hex \"#rrggbb\" or a basic name (black, white, gray, silver, red, maroon, yellow,\n  olive, lime, green, aqua, teal, blue, navy, fuchsia, purple)\n- resolution: DPI resolution (default: 72)\n\nReturns:\n- image_id: internal GIMP image ID\n- name: the image name\n- width / height: confirmed dimensions\n- color_mode: confirmed mode\n- display_opened: whether a GIMP window was opened\n\nExamples:\n- new_canvas(1024, 1024) — white 1024x1024 RGB canvas\n- new_canvas(1920, 1080, name=\"Background\", fill=\"black\")\n- new_canvas(512, 512, color_mode=\"RGBA\", fill=\"transparent\")\n","inputSchema":{"properties":{"color_mode":{"default":"RGB","title":"Color Mode","type":"string"},"fill":{"default":"white","title":"Fill","type":"string"},"height":{"title":"Height","type":"integer"},"name":{"default":"Untitled","title":"Name","type":"string"},"resolution":{"default":72,"title":"Resolution","type":"integer"},"width":{"title":"Width","type":"integer"}},"required":["width","height"],"title":"new_canvasArguments","type":"object"},"name":"new_canvas"},{"description":"Get an open image in GIMP as an Image object with optional scaling and region selection.\n\nRenders the image data (all visible layers), independent of GIMP's zoom or scroll.\nNo size restrictions — pass any max_width/max_height you need.\nFor large images, omit max_width/max_height to get the full resolution.\n\nSupports two main use cases:\n1. Full image with optional scaling (pass max_width/max_height)\n2. Region extraction with optional scaling (pass region dict)\n\nParameters:\n- max_width, max_height: Box to scale the image into, preserving aspect ratio\n  (smaller images are enlarged). Omit for full resolution.\n- region: Dictionary with keys (image pixel coordinates, integers):\n    - origin_x, origin_y: Top-left corner of region to extract\n    - width, height: Dimensions of region to extract\n    - max_width, max_height: Optional box to scale the region into (small regions are enlarged)\n    Other keys (such as x/y) are rejected.\n- image_index: Which open image to render (default 0 = most recently opened;\n  see list_images)\n\nExamples:\n- Full image at full res: get_image_bitmap()\n- Full image scaled: get_image_bitmap(max_width=2048, max_height=2048)\n- Region: get_image_bitmap(region={\"origin_x\": 0, \"origin_y\": 0, \"width\": 512, \"height\": 512})\n\nget_state_snapshot is a shorter way to ask for the same image.\n\nReturns: the image as PNG. Fails if no image is open, the region is invalid, or export fails.\n","inputSchema":{"properties":{"image_index":{"default":0,"title":"Image Index","type":"integer"},"max_height":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Max Height"},"max_width":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Max Width"},"region":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"title":"Region"}},"title":"get_image_bitmapArguments","type":"object"},"name":"get_image_bitmap"},{"description":"Get metadata about an open image in GIMP without the bitmap data.\n\nParameters:\n- image_index: Which open image to describe (default 0 = most recently opened; see list_images)\n\nReturns detailed information about the image including:\n- Image dimensions (width, height)\n- Color mode and base type\n- Number of layers and channels\n- File information if available\n- Layer structure and properties\n\nThis is much faster than get_image_bitmap() since it doesn't export the actual image data.\nPerfect for when you only need to know image properties for decision making.\n\nReturns:\n- Dictionary containing comprehensive image metadata\n- Raises exception if no images are open\n","inputSchema":{"properties":{"image_index":{"default":0,"title":"Image Index","type":"integer"}},"title":"get_image_metadataArguments","type":"object"},"name":"get_image_metadata"},{"description":"Get comprehensive information about the GIMP installation and environment.\n\nReturns detailed information about GIMP that AI assistants need to understand\nthe current environment, including:\n- GIMP version and build information\n- Installation paths and directories\n- Available plugins and procedures\n- System configuration\n- Runtime environment details\n\nThis information helps AI assistants provide better support and troubleshooting\nby understanding the specific GIMP setup they're working with.\n\nReturns:\n- Dictionary containing comprehensive GIMP environment information\n- Raises exception if GIMP connection fails\n","inputSchema":{"properties":{},"title":"get_gimp_infoArguments","type":"object"},"name":"get_gimp_info"},{"description":"Return a live visual snapshot of the current image state — no file save needed.\n\nA shortcut for get_image_bitmap with a single max_size and x/y region keys.\n\nAI agents call this to get immediate visual feedback after any edit operation,\nletting them verify results and decide next steps without saving to disk.\n\nParameters:\n- image_index: Which open image to snapshot (default: 0 = most recent)\n- max_size: Longest side of the returned PNG in pixels (default: 512). The image or\n  region is scaled to fit, so small regions are enlarged: positions in the snapshot\n  are not image coordinates (multiply by region width / snapshot width).\n- region: Optional dict {x, y, width, height} in image pixels to zoom into an area\n          e.g. {\"x\": 200, \"y\": 300, \"width\": 100, \"height\": 80} for mouth area\n- label: Optional annotation label (logged but not drawn — for agent bookkeeping)\n\nReturns:\n- PNG image of the current GIMP canvas state (with alpha if present)\n\nTypical agent workflow:\n    1. open_image / new_canvas\n    2. <edit operations>\n    3. get_state_snapshot()          ← see result, decide next step\n    4. <more edits>\n    5. get_state_snapshot(region={\"x\":200,\"y\":300,\"width\":100,\"height\":80})\n    6. export_image when satisfied\n","inputSchema":{"properties":{"image_index":{"default":0,"title":"Image Index","type":"integer"},"label":{"default":"","title":"Label","type":"string"},"max_size":{"default":512,"title":"Max Size","type":"integer"},"region":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"title":"Region"}},"title":"get_state_snapshotArguments","type":"object"},"name":"get_state_snapshot"},{"description":"Get the current GIMP context state (colors, brush, settings).\n\nIMPORTANT: Context state can be changed by the user in GIMP UI at any time.\nCheck context state before operations that depend on specific settings.\n\nReturns information about:\n- Foreground and background colors as sRGB hex (\"#rrggbb\", as tools accept) and alpha 0-1\n- Current brush and its properties\n- Opacity setting (0-100%)\n- Paint mode, named like set_layer_properties blend modes (e.g. \"NORMAL\")\n- Feather state and radius [x, y]\n- Antialiasing state\n\nUse cases:\n- Verify colors before drawing operations\n- Check if feathering is enabled (avoid unwanted blurry edges)\n- Ensure correct opacity and blend mode\n- Detect if user changed settings in GIMP UI\n\nReturns:\n- Dictionary containing current context state\n- Raises exception if unable to get context state\n","inputSchema":{"properties":{},"title":"get_context_stateArguments","type":"object"},"name":"get_context_state"},{"description":"Call GIMP 3.2 API methods through PyGObject console.\n\nGIMP MCP Protocol:\n- Use api_path=\"exec\" to execute Python code in GIMP\n- args[0] should be \"pyGObject-console\" for executing commands\n- args[1] should be array of Python code strings to execute\n- Each array item runs as its own exec(): put a multi-line block (for/if/def)\n  in ONE item with embedded newlines, not split across items\n- Only print() output is returned (one string per item); bare expressions are\n  not echoed. To get values back, use args[0] = \"pyGObject-eval\" with a list of\n  expressions, e.g. [\"pyGObject-eval\", [\"len(Gimp.get_images())\"]]\n- Commands execute in persistent context - imports and variables persist\n- Always call Gimp.displays_flush() after drawing operations\n\nFor image operations, use get_image_bitmap()\nwhich return proper MCP Image objects that Claude can process directly.\n\nGUIDANCE PROMPTS:\n- For common operations and best practices, invoke the 'gimp_best_practices' prompt\n- For complex multi-element drawings with layers, invoke the 'gimp_iterative_workflow' prompt\n\nOptional Initialization Pattern:\n[\"images = Gimp.get_images()\", \"image1 = images[0]\",\n \"layers = image1.get_layers()\", \"layer1 = layers[0]\", \"drawable1 = layer1\"]\n\nCommon Operations:\n- Draw line: [\"Gimp.pencil(drawable1, [0, 0, 200, 200])\", \"Gimp.displays_flush()\"]\n- Set color: [\"from gi.repository import Gegl\", \"red_color = Gegl.Color.new('red')\", \n              \"Gimp.context_set_foreground(red_color)\"]\n- Draw ellipse: [\"Gimp.Image.select_ellipse(image1, Gimp.ChannelOps.REPLACE, 100, 100, 30, 20)\",\n                 \"Gimp.Drawable.edit_fill(drawable1, Gimp.FillType.FOREGROUND)\",\n                 \"Gimp.Selection.none(image1)\", \"Gimp.displays_flush()\"]\n- Paint curve: [\"Gimp.paintbrush_default(drawable1, [50.0, 50.0, 150.0, 200.0, 250.0, 50.0, 350.0, 200.0])\", \n                \"Gimp.displays_flush()\"]\n- Draw bezier curve: [\"path = Gimp.Path.new(image1, 'my_bezier_path')\", \n                      \"image1.insert_path(path, None, 0)\",\n                      \"stroke_id = path.bezier_stroke_new_moveto(100, 100)\",\n                      \"path.bezier_stroke_cubicto(stroke_id, 150, 50, 250, 150, 300, 100)\",\n                      \"Gimp.Drawable.edit_stroke_item(drawable1, path)\",\n                      \"Gimp.Selection.none(image1)\", \"Gimp.displays_flush()\"]\n- Get open filenames: [\"print([x.get_file().get_path() for x in Gimp.get_images()])\"]\n- Copy layer between images: [\"image1 = Gimp.get_images()[0]\", \"image2 = Gimp.get_images()[1]\",\n                              \"width = image1.get_width()\", \"height = image1.get_height()\",\n                              \"image1.select_rectangle(Gimp.ChannelOps.REPLACE, 0, 0, width, height)\",\n                              \"image1_layers = image1.get_selected_layers()\", \"drawable = image1_layers[0]\",\n                              \"Gimp.edit_copy([drawable])\", \"image2_layers = image2.get_layers()\",\n                              \"target_drawable = image2_layers[0]\", \"floating_sel = Gimp.edit_paste(target_drawable, True)[0]\",\n                              \"Gimp.floating_sel_anchor(floating_sel)\", \"Gimp.displays_flush()\"]\n- New image: [\"image1 = Gimp.Image.new(350, 800, Gimp.ImageBaseType.RGB)\",\n              \"layer1 = Gimp.Layer.new(image1, 'Background', 350, 800, Gimp.ImageType.RGB_IMAGE, 100, Gimp.LayerMode.NORMAL)\",\n              \"image1.insert_layer(layer1, None, 0)\", \"drawable1 = layer1\",\n              \"white_color = Gegl.Color.new('white')\", \"Gimp.context_set_background(white_color)\",\n              \"Gimp.Drawable.edit_fill(drawable1, Gimp.FillType.BACKGROUND)\", \"Gimp.Display.new(image1)\"]\n\nImportant Tips:\n- When filling layers with color, ensure layer has alpha channel using Gimp.Layer.add_alpha()\n- Use Gimp.Drawable.fill() for reliable full-layer fills\n- Specify colors as hex (\"#rrggbb\"): rgb() floats are read as linear light, and\n  unknown color names silently become a translucent cyan\n- After drawing operations, always call Gimp.displays_flush()\n- After selection operations for drawing, unselect with Gimp.Selection.none(image1)\n\nGIMP 3.2 API Changes:\n- Use Gimp.get_images() instead of deprecated Gimp.list_images()\n- Use image.get_layers() instead of Gimp.get_active_layer()\n- gimpfu module not available in GIMP 3.2\n- Colors are created with Gegl.Color.new(\"#rrggbb\")\n- Full API documentation: https://developer.gimp.org/api/3.0/libgimp/\n\nParameters:\n- api_path: Use \"exec\" for Python execution\n- args: [\"pyGObject-console\", [\"python_code_array\"]] or [\"pyGObject-eval\", [\"expression\"]]\n- kwargs: Dictionary of keyword arguments (rarely used)\n\nReturns:\n- JSON string of the result or error message\n","inputSchema":{"properties":{"api_path":{"title":"Api Path","type":"string"},"args":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"default":null,"title":"Args"},"kwargs":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"title":"Kwargs"}},"required":["api_path"],"title":"call_apiArguments","type":"object"},"name":"call_api","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"call_apiOutput","type":"object"}},{"description":"Open an image file in GIMP and create a display window.\n\nParameters:\n- file_path: Absolute path to the image file to open (PNG, JPEG, TIFF, etc.)\n\nReturns:\n- image_id: internal GIMP image ID\n- width / height: image dimensions in pixels\n- color_mode: RGB / Grayscale / Indexed\n- num_layers: number of layers in the image\n- display_opened: whether a GIMP display window was created\n","inputSchema":{"properties":{"file_path":{"title":"File Path","type":"string"}},"required":["file_path"],"title":"open_imageArguments","type":"object"},"name":"open_image"},{"description":"Save the current image as a GIMP XCF file (preserves all layers and metadata).\n\nParameters:\n- file_path: Absolute path for the output .xcf file\n- image_index: Index of the image to save (default 0 = most recently opened; see list_images)\n\nReturns:\n- status: \"success\" or \"error\"\n- file_path: confirmed output path\n","inputSchema":{"properties":{"file_path":{"title":"File Path","type":"string"},"image_index":{"default":0,"title":"Image Index","type":"integer"}},"required":["file_path"],"title":"save_xcfArguments","type":"object"},"name":"save_xcf"},{"description":"Export the current image to a raster file (PNG, JPEG, WEBP, TIFF).\n\nParameters:\n- file_path: Absolute path for the output file\n- format: Output format — \"png\" (default), \"jpeg\", \"webp\", \"tiff\"\n- quality: JPEG/WEBP quality 1-100 (default 90; ignored for PNG/TIFF)\n- flatten: Flatten all layers before export (default True)\n- image_index: Index of the image to export (default 0)\n\nReturns:\n- status, file_path, format, file_size_bytes\n","inputSchema":{"properties":{"file_path":{"title":"File Path","type":"string"},"flatten":{"default":true,"title":"Flatten","type":"boolean"},"format":{"default":"png","title":"Format","type":"string"},"image_index":{"default":0,"title":"Image Index","type":"integer"},"quality":{"default":90,"title":"Quality","type":"integer"}},"required":["file_path"],"title":"export_imageArguments","type":"object"},"name":"export_image"},{"description":"Export all open images (or a specific one) to a directory.\n\nParameters:\n- output_dir: Directory to write exported files into\n- format: \"png\", \"jpeg\", \"webp\", \"tiff\" (default \"png\")\n- quality: JPEG/WEBP quality (default 90)\n- name_pattern: Filename template — use {name} for image name, {index} for position\n- image_index: If set, export only that image; omit to export all open images\n\nReturns:\n- exported: list of {file_path, name, width, height}\n- count: number of files written\n- errors: list of any export errors\n","inputSchema":{"properties":{"format":{"default":"png","title":"Format","type":"string"},"image_index":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Image Index"},"name_pattern":{"default":"{name}","title":"Name Pattern","type":"string"},"output_dir":{"title":"Output Dir","type":"string"},"quality":{"default":90,"title":"Quality","type":"integer"}},"required":["output_dir"],"title":"batch_exportArguments","type":"object"},"name":"batch_export"},{"description":"Automatically stretch the tonal range of an image (auto levels / auto stretch contrast).\n\nParameters:\n- image_index: Index of the target image (default 0)\n- layer_name: Name of the layer to adjust; defaults to active layer\n\nReturns status dict.\n","inputSchema":{"properties":{"image_index":{"default":0,"title":"Image Index","type":"integer"},"layer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Layer Name"}},"title":"auto_levelsArguments","type":"object"},"name":"auto_levels"},{"description":"Adjust tonal curves for a layer.\n\nParameters:\n- preset: Built-in curve shape — \"s_curve\" (default), \"lighten\", \"darken\", \"contrast\"\n- points: Custom control points as [[input, output], ...] override (overrides preset)\n- channel: \"value\" (all), \"red\", \"green\", \"blue\", \"alpha\"\n- image_index: Target image index (default 0)\n- layer_name: Layer to adjust; defaults to active layer\n\nReturns status dict.\n","inputSchema":{"properties":{"channel":{"default":"value","title":"Channel","type":"string"},"image_index":{"default":0,"title":"Image Index","type":"integer"},"layer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Layer Name"},"points":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"default":null,"title":"Points"},"preset":{"default":"s_curve","title":"Preset","type":"string"}},"title":"adjust_curvesArguments","type":"object"},"name":"adjust_curves"},{"description":"Adjust brightness and contrast of a layer.\n\nParameters:\n- brightness: -127 to +127 (default 0)\n- contrast: -127 to +127 (default 0)\n- image_index: Target image index (default 0)\n- layer_name: Layer to adjust; defaults to active layer\n\nReturns status dict.\n","inputSchema":{"properties":{"brightness":{"default":0,"title":"Brightness","type":"integer"},"contrast":{"default":0,"title":"Contrast","type":"integer"},"image_index":{"default":0,"title":"Image Index","type":"integer"},"layer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Layer Name"}},"title":"adjust_brightness_contrastArguments","type":"object"},"name":"adjust_brightness_contrast"},{"description":"Adjust hue, saturation, and lightness of a layer.\n\nParameters:\n- hue: Hue rotation -180 to +180 (default 0)\n- saturation: Saturation shift -100 to +100 (default 0)\n- lightness: Lightness shift -100 to +100 (default 0)\n- color_range: \"all\", \"red\", \"yellow\", \"green\", \"cyan\", \"blue\", \"magenta\" (default \"all\")\n- image_index: Target image index (default 0)\n- layer_name: Layer to adjust; defaults to active layer\n\nReturns status dict.\n","inputSchema":{"properties":{"color_range":{"default":"all","title":"Color Range","type":"string"},"hue":{"default":0,"title":"Hue","type":"number"},"image_index":{"default":0,"title":"Image Index","type":"integer"},"layer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Layer Name"},"lightness":{"default":0,"title":"Lightness","type":"number"},"saturation":{"default":0,"title":"Saturation","type":"number"}},"title":"adjust_hue_saturationArguments","type":"object"},"name":"adjust_hue_saturation"},{"description":"Adjust color balance (shadows / midtones / highlights) of a layer.\n\nParameters:\n- cyan_red: -100 to +100 (negative = cyan, positive = red; default 0)\n- magenta_green: -100 to +100 (default 0)\n- yellow_blue: -100 to +100 (default 0)\n- range: \"shadows\", \"midtones\" (default), \"highlights\"\n- image_index: Target image index (default 0)\n- layer_name: Layer to adjust; defaults to active layer\n\nReturns status dict.\n","inputSchema":{"properties":{"cyan_red":{"default":0,"title":"Cyan Red","type":"number"},"image_index":{"default":0,"title":"Image Index","type":"integer"},"layer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Layer Name"},"magenta_green":{"default":0,"title":"Magenta Green","type":"number"},"range":{"default":"midtones","title":"Range","type":"string"},"yellow_blue":{"default":0,"title":"Yellow Blue","type":"number"}},"title":"adjust_color_balanceArguments","type":"object"},"name":"adjust_color_balance"},{"description":"Sharpen a layer using unsharp mask.\n\nParameters:\n- amount: Sharpening strength 0-500 (default 50.0)\n- radius: Blur radius for the mask in pixels (default 3.0)\n- threshold: Minimum difference before sharpening is applied (default 0)\n- image_index: Target image index (default 0)\n- layer_name: Layer to sharpen; defaults to active layer\n\nReturns status dict.\n","inputSchema":{"properties":{"amount":{"default":50.0,"title":"Amount","type":"number"},"image_index":{"default":0,"title":"Image Index","type":"integer"},"layer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Layer Name"},"radius":{"default":3.0,"title":"Radius","type":"number"},"threshold":{"default":0,"title":"Threshold","type":"integer"}},"title":"sharpenArguments","type":"object"},"name":"sharpen"},{"description":"Apply Gaussian blur to a layer.\n\nSame as apply_gaussian_blur, but with separate horizontal and vertical radii.\n\nParameters:\n- radius_x: Horizontal blur radius in pixels (default 5.0)\n- radius_y: Vertical blur radius in pixels (default 5.0)\n- image_index: Target image index (default 0)\n- layer_name: Layer to blur; defaults to active layer\n\nReturns status dict.\n","inputSchema":{"properties":{"image_index":{"default":0,"title":"Image Index","type":"integer"},"layer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Layer Name"},"radius_x":{"default":5.0,"title":"Radius X","type":"number"},"radius_y":{"default":5.0,"title":"Radius Y","type":"number"}},"title":"blurArguments","type":"object"},"name":"blur"},{"description":"Reduce noise in a layer using GEGL noise-reduction.\n\nParameters:\n- strength: Noise reduction strength 0-100 (default 50)\n- image_index: Target image index (default 0)\n- layer_name: Layer to denoise; defaults to active layer\n\nReturns status dict.\n","inputSchema":{"properties":{"image_index":{"default":0,"title":"Image Index","type":"integer"},"layer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Layer Name"},"strength":{"default":50,"title":"Strength","type":"integer"}},"title":"denoiseArguments","type":"object"},"name":"denoise"},{"description":"Convert a layer to grayscale (desaturate).\n\nParameters:\n- mode: Desaturation algorithm — \"luminosity\" (default), \"luma\", \"average\", \"lightness\"\n- image_index: Target image index (default 0)\n- layer_name: Layer to desaturate; defaults to active layer\n\nReturns status dict.\n","inputSchema":{"properties":{"image_index":{"default":0,"title":"Image Index","type":"integer"},"layer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Layer Name"},"mode":{"default":"luminosity","title":"Mode","type":"string"}},"title":"desaturateArguments","type":"object"},"name":"desaturate"},{"description":"Invert all colors in a layer (create a negative).\n\nParameters:\n- image_index: Target image index (default 0)\n- layer_name: Layer to invert; defaults to active layer\n\nReturns status dict.\n","inputSchema":{"properties":{"image_index":{"default":0,"title":"Image Index","type":"integer"},"layer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Layer Name"}},"title":"invert_colorsArguments","type":"object"},"name":"invert_colors"},{"description":"Scale an image to exact pixel dimensions.\n\nParameters:\n- width: Target width in pixels\n- height: Target height in pixels\n- interpolation: \"cubic\" (default), \"linear\", \"none\"\n- image_index: Target image index (default 0)\n\nReturns: {status, width, height}\n","inputSchema":{"properties":{"height":{"title":"Height","type":"integer"},"image_index":{"default":0,"title":"Image Index","type":"integer"},"interpolation":{"default":"cubic","title":"Interpolation","type":"string"},"width":{"title":"Width","type":"integer"}},"required":["width","height"],"title":"scale_imageArguments","type":"object"},"name":"scale_image"},{"description":"Scale an image to fit within a bounding box, preserving aspect ratio.\n\nParameters:\n- max_width: Maximum allowed width in pixels\n- max_height: Maximum allowed height in pixels\n- interpolation: \"cubic\" (default), \"linear\", \"none\"\n- image_index: Target image index (default 0)\n\nReturns: {status, width, height} — final dimensions after scaling\n","inputSchema":{"properties":{"image_index":{"default":0,"title":"Image Index","type":"integer"},"interpolation":{"default":"cubic","title":"Interpolation","type":"string"},"max_height":{"title":"Max Height","type":"integer"},"max_width":{"title":"Max Width","type":"integer"}},"required":["max_width","max_height"],"title":"scale_to_fitArguments","type":"object"},"name":"scale_to_fit"},{"description":"Crop the image canvas to the current selection bounds.\n\nParameters:\n- autocrop: If True, auto-detect crop bounds instead of using selection (default False)\n- image_index: Target image index (default 0)\n\nReturns: {status, x, y, width, height} — crop region applied\n","inputSchema":{"properties":{"autocrop":{"default":false,"title":"Autocrop","type":"boolean"},"image_index":{"default":0,"title":"Image Index","type":"integer"}},"title":"crop_to_selectionArguments","type":"object"},"name":"crop_to_selection"},{"description":"Crop the image canvas to an explicit rectangle.\n\nParameters:\n- x, y: Top-left corner of the crop rectangle\n- width, height: Dimensions of the crop rectangle\n- image_index: Target image index (default 0)\n\nReturns: {status, x, y, width, height}\n","inputSchema":{"properties":{"height":{"title":"Height","type":"integer"},"image_index":{"default":0,"title":"Image Index","type":"integer"},"width":{"title":"Width","type":"integer"},"x":{"title":"X","type":"integer"},"y":{"title":"Y","type":"integer"}},"required":["x","y","width","height"],"title":"crop_to_rectArguments","type":"object"},"name":"crop_to_rect"},{"description":"Rotate the entire image.\n\nParameters:\n- angle: Rotation in degrees — 90, 180, 270 use lossless GIMP rotation;\n         other values rotate all layers about the center with interpolation,\n         enlarge the canvas to fit, and flatten\n- image_index: Target image index (default 0)\n\nReturns status dict.\n","inputSchema":{"properties":{"angle":{"title":"Angle","type":"number"},"image_index":{"default":0,"title":"Image Index","type":"integer"}},"required":["angle"],"title":"rotate_imageArguments","type":"object"},"name":"rotate_image"},{"description":"Flip the entire image horizontally or vertically.\n\nParameters:\n- direction: \"horizontal\" (default) or \"vertical\"\n- image_index: Target image index (default 0)\n\nReturns status dict.\n","inputSchema":{"properties":{"direction":{"default":"horizontal","title":"Direction","type":"string"},"image_index":{"default":0,"title":"Image Index","type":"integer"}},"title":"flip_imageArguments","type":"object"},"name":"flip_image"},{"description":"Resize the image canvas without scaling the content.\n\nParameters:\n- width, height: New canvas dimensions in pixels\n- anchor: Position of existing content — \"center\" (default), \"top-left\", \"top\",\n          \"top-right\", \"left\", \"right\", \"bottom-left\", \"bottom\", \"bottom-right\"\n- fill: New canvas areas: \"transparent\" (default) or a color as hex \"#rrggbb\" or a basic name (black, white, gray, silver, red, maroon, yellow,\n  olive, lime, green, aqua, teal, blue, navy, fuchsia, purple). A color is painted on a new\n  bottom layer named \"Canvas fill\"; existing layers and the selection are left as they are\n- image_index: Target image index (default 0)\n\nReturns: {status, width, height, offset_x, offset_y, fill_layer (its name, or null)}\n","inputSchema":{"properties":{"anchor":{"default":"center","title":"Anchor","type":"string"},"fill":{"default":"transparent","title":"Fill","type":"string"},"height":{"title":"Height","type":"integer"},"image_index":{"default":0,"title":"Image Index","type":"integer"},"width":{"title":"Width","type":"integer"}},"required":["width","height"],"title":"resize_canvasArguments","type":"object"},"name":"resize_canvas"},{"description":"Create a rectangular selection.\n\nParameters:\n- x, y: Top-left corner of the selection\n- width, height: Dimensions of the selection\n- operation: \"replace\" (default), \"add\", \"subtract\", \"intersect\"\n- feather: Feather radius in pixels (default 0 = no feather)\n- image_index: Target image index (default 0)\n\nReturns status dict.\n","inputSchema":{"properties":{"feather":{"default":0,"title":"Feather","type":"number"},"height":{"title":"Height","type":"integer"},"image_index":{"default":0,"title":"Image Index","type":"integer"},"operation":{"default":"replace","title":"Operation","type":"string"},"width":{"title":"Width","type":"integer"},"x":{"title":"X","type":"integer"},"y":{"title":"Y","type":"integer"}},"required":["x","y","width","height"],"title":"select_rectangleArguments","type":"object"},"name":"select_rectangle"},{"description":"Create an elliptical selection.\n\nParameters:\n- x, y: Top-left corner of the bounding box\n- width, height: Bounding box dimensions\n- operation: \"replace\" (default), \"add\", \"subtract\", \"intersect\"\n- feather: Feather radius in pixels (default 0)\n- image_index: Target image index (default 0)\n\nReturns status dict.\n","inputSchema":{"properties":{"feather":{"default":0,"title":"Feather","type":"number"},"height":{"title":"Height","type":"integer"},"image_index":{"default":0,"title":"Image Index","type":"integer"},"operation":{"default":"replace","title":"Operation","type":"string"},"width":{"title":"Width","type":"integer"},"x":{"title":"X","type":"integer"},"y":{"title":"Y","type":"integer"}},"required":["x","y","width","height"],"title":"select_ellipseArguments","type":"object"},"name":"select_ellipse"},{"description":"Select regions by color similarity.\n\nParameters:\n- color: Target color as hex \"#rrggbb\" or a basic name (black, white, gray, silver, red, maroon, yellow,\n  olive, lime, green, aqua, teal, blue, navy, fuchsia, purple)\n- threshold: Color similarity tolerance 0-255 (default 15)\n- operation: \"replace\" (default), \"add\", \"subtract\", \"intersect\"\n- image_index: Target image index (default 0)\n- layer_name: Layer to sample from; defaults to active layer\n\nReturns status dict.\n","inputSchema":{"properties":{"color":{"title":"Color","type":"string"},"image_index":{"default":0,"title":"Image Index","type":"integer"},"layer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Layer Name"},"operation":{"default":"replace","title":"Operation","type":"string"},"threshold":{"default":15,"title":"Threshold","type":"integer"}},"required":["color"],"title":"select_by_colorArguments","type":"object"},"name":"select_by_color"},{"description":"Select the entire image canvas.\n\nParameters:\n- image_index: Target image index (default 0)\n\nReturns status dict.\n","inputSchema":{"properties":{"image_index":{"default":0,"title":"Image Index","type":"integer"}},"title":"select_allArguments","type":"object"},"name":"select_all"},{"description":"Remove / deselect all selections.\n\nParameters:\n- image_index: Target image index (default 0)\n\nReturns status dict.\n","inputSchema":{"properties":{"image_index":{"default":0,"title":"Image Index","type":"integer"}},"title":"select_noneArguments","type":"object"},"name":"select_none"},{"description":"Invert the current selection (select what is not selected).\n\nParameters:\n- image_index: Target image index (default 0)\n\nReturns status dict.\n","inputSchema":{"properties":{"image_index":{"default":0,"title":"Image Index","type":"integer"}},"title":"invert_selectionArguments","type":"object"},"name":"invert_selection"},{"description":"Grow, shrink, feather, border, or sharpen the current selection.\n\nParameters:\n- operation: \"grow\", \"shrink\", \"feather\", \"border\", \"sharpen\"\n- amount: Pixel radius for grow/shrink/feather/border; ignored for sharpen\n- image_index: Target image index (default 0)\n\nReturns status dict.\n","inputSchema":{"properties":{"amount":{"title":"Amount","type":"number"},"image_index":{"default":0,"title":"Image Index","type":"integer"},"operation":{"title":"Operation","type":"string"}},"required":["operation","amount"],"title":"modify_selectionArguments","type":"object"},"name":"modify_selection"},{"description":"Create and insert a new layer into an image.\n\nParameters:\n- name: Layer name (default \"New Layer\")\n- width, height: Layer dimensions; defaults to image dimensions\n- fill: \"transparent\" (default) or a color as hex \"#rrggbb\" or a basic name (black, white, gray, silver, red, maroon, yellow,\n  olive, lime, green, aqua, teal, blue, navy, fuchsia, purple)\n- opacity: Layer opacity 0-100 (default 100)\n- blend_mode: NORMAL (default), MULTIPLY, SCREEN, OVERLAY, DARKEN, LIGHTEN, DODGE,\n  BURN, HARD_LIGHT, SOFT_LIGHT, DIFFERENCE, HUE, SATURATION, COLOR, LUMINOSITY or\n  DISSOLVE (case-insensitive; other names are rejected)\n- position: Stack index, 0 = top of the stack; -1 (default) = directly above the active layer\n- image_index: Target image index (default 0)\n\nReturns: {layer_name, layer_id, width, height, position}\n","inputSchema":{"properties":{"blend_mode":{"default":"NORMAL","title":"Blend Mode","type":"string"},"fill":{"default":"transparent","title":"Fill","type":"string"},"height":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Height"},"image_index":{"default":0,"title":"Image Index","type":"integer"},"name":{"default":"New Layer","title":"Name","type":"string"},"opacity":{"default":100,"title":"Opacity","type":"number"},"position":{"default":-1,"title":"Position","type":"integer"},"width":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Width"}},"title":"create_layerArguments","type":"object"},"name":"create_layer"},{"description":"Duplicate a layer and insert the copy above it.\n\nParameters:\n- layer_name: Name of the layer to duplicate; defaults to active layer\n- image_index: Target image index (default 0)\n\nReturns: {layer_name, layer_id}\n","inputSchema":{"properties":{"image_index":{"default":0,"title":"Image Index","type":"integer"},"layer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Layer Name"}},"title":"duplicate_layerArguments","type":"object"},"name":"duplicate_layer"},{"description":"Delete a layer from an image.\n\nParameters:\n- layer_name: Name of the layer to delete\n- layer_index: Position index of the layer (alternative to layer_name)\n- image_index: Target image index (default 0)\n\nProvide either layer_name or layer_index. Defaults to active layer if neither given.\n\nReturns status dict.\n","inputSchema":{"properties":{"image_index":{"default":0,"title":"Image Index","type":"integer"},"layer_index":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Layer Index"},"layer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Layer Name"}},"title":"delete_layerArguments","type":"object"},"name":"delete_layer"},{"description":"Rename a layer.\n\nParameters:\n- new_name: New name for the layer\n- old_name: Current name of the layer to rename\n- layer_index: Position index alternative to old_name\n- image_index: Target image index (default 0)\n\nReturns: {old_name, new_name}\n","inputSchema":{"properties":{"image_index":{"default":0,"title":"Image Index","type":"integer"},"layer_index":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Layer Index"},"new_name":{"title":"New Name","type":"string"},"old_name":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Old Name"}},"required":["new_name"],"title":"rename_layerArguments","type":"object"},"name":"rename_layer"},{"description":"Set properties on an existing layer.\n\nParameters:\n- layer_name / layer_index: Identify the layer (defaults to active layer)\n- opacity: New opacity 0-100 (omit to leave unchanged)\n- blend_mode: Omit to leave unchanged, or one of NORMAL (default), MULTIPLY, SCREEN, OVERLAY, DARKEN, LIGHTEN, DODGE,\n  BURN, HARD_LIGHT, SOFT_LIGHT, DIFFERENCE, HUE, SATURATION, COLOR, LUMINOSITY or\n  DISSOLVE (case-insensitive; other names are rejected)\n- visible: True/False visibility (omit to leave unchanged)\n- image_index: Target image index (default 0)\n\nReturns status dict.\n","inputSchema":{"properties":{"blend_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Blend Mode"},"image_index":{"default":0,"title":"Image Index","type":"integer"},"layer_index":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Layer Index"},"layer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Layer Name"},"opacity":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Opacity"},"visible":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"title":"Visible"}},"title":"set_layer_propertiesArguments","type":"object"},"name":"set_layer_properties"},{"description":"Move a layer to a new stack position.\n\nParameters:\n- new_position: Target stack index, 0 = top (same order as list_layers)\n- layer_name / layer_index: Identify the layer (defaults to active layer)\n- image_index: Target image index (default 0)\n\nReturns status dict.\n","inputSchema":{"properties":{"image_index":{"default":0,"title":"Image Index","type":"integer"},"layer_index":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Layer Index"},"layer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Layer Name"},"new_position":{"title":"New Position","type":"integer"}},"required":["new_position"],"title":"reorder_layerArguments","type":"object"},"name":"reorder_layer"},{"description":"Flatten all layers into a single background layer.\n\nParameters:\n- image_index: Target image index (default 0)\n\nReturns status dict.\n","inputSchema":{"properties":{"image_index":{"default":0,"title":"Image Index","type":"integer"}},"title":"flatten_imageArguments","type":"object"},"name":"flatten_image"},{"description":"Merge all visible layers into a single layer.\n\nParameters:\n- image_index: Target image index (default 0)\n\nReturns: {layer_name, layer_id}\n","inputSchema":{"properties":{"image_index":{"default":0,"title":"Image Index","type":"integer"}},"title":"merge_visible_layersArguments","type":"object"},"name":"merge_visible_layers"},{"description":"List all layers in an image with their properties.\n\nParameters:\n- image_index: Target image index (default 0)\n\nReturns: {layers: [{index, name, id, visible, opacity, blend_mode, width, height,\n          has_alpha, offsets, active}], count}. Index 0 is the top layer; active marks the\nlayer that tools use when layer_name is omitted. blend_mode uses set_layer_properties\nnames (e.g. \"NORMAL\"); offsets is [x, y].\n","inputSchema":{"properties":{"image_index":{"default":0,"title":"Image Index","type":"integer"}},"title":"list_layersArguments","type":"object"},"name":"list_layers"},{"description":"Fill an entire layer with a solid color.\n\nParameters:\n- color: Fill color as hex \"#rrggbb\" or a basic name (black, white, gray, silver, red, maroon, yellow,\n  olive, lime, green, aqua, teal, blue, navy, fuchsia, purple)\n- layer_name: Layer to fill; defaults to active layer\n- image_index: Target image index (default 0)\n\nReturns status dict.\n","inputSchema":{"properties":{"color":{"title":"Color","type":"string"},"image_index":{"default":0,"title":"Image Index","type":"integer"},"layer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Layer Name"}},"required":["color"],"title":"fill_layerArguments","type":"object"},"name":"fill_layer"},{"description":"Fill the current selection with a color or fill type.\n\nParameters:\n- color: Fill color as hex \"#rrggbb\" or a basic name (black, white, gray, silver, red, maroon, yellow,\n  olive, lime, green, aqua, teal, blue, navy, fuchsia, purple) (used when fill_type is omitted)\n- fill_type: Instead of color: \"foreground\" or \"background\" (GIMP's current colors, see\n  set_colors), \"pattern\", or \"transparent\" (clears the selection). Give color or fill_type.\n- image_index: Target image index (default 0)\n- layer_name: Target layer; defaults to active layer\n\nReturns status dict.\n","inputSchema":{"properties":{"color":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Color"},"fill_type":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Fill Type"},"image_index":{"default":0,"title":"Image Index","type":"integer"},"layer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Layer Name"}},"title":"fill_selectionArguments","type":"object"},"name":"fill_selection"},{"description":"Set the GIMP foreground and/or background color.\n\nParameters:\n- foreground: New foreground color as hex \"#rrggbb\" or a basic name (black, white, gray, silver, red, maroon, yellow,\n  olive, lime, green, aqua, teal, blue, navy, fuchsia, purple); omit to leave unchanged\n- background: New background color, same formats; omit to leave unchanged\n\nReturns: {foreground, background} confirmation dict.\n","inputSchema":{"properties":{"background":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Background"},"foreground":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Foreground"}},"title":"set_colorsArguments","type":"object"},"name":"set_colors"},{"description":"Draw a straight line on a layer.\n\nParameters:\n- x1, y1: Start point\n- x2, y2: End point\n- color: Stroke color as hex \"#rrggbb\" or a basic name (black, white, gray, silver, red, maroon, yellow,\n  olive, lime, green, aqua, teal, blue, navy, fuchsia, purple); uses current foreground if omitted\n- width: Stroke width in pixels (default 2.0)\n- tool: \"pencil\" (default, hard edge) or \"paintbrush\" (soft edge)\n- layer_name: Target layer; defaults to active layer\n- image_index: Target image index (default 0)\n\nReturns status dict.\n","inputSchema":{"properties":{"color":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Color"},"image_index":{"default":0,"title":"Image Index","type":"integer"},"layer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Layer Name"},"tool":{"default":"pencil","title":"Tool","type":"string"},"width":{"default":2.0,"title":"Width","type":"number"},"x1":{"title":"X1","type":"number"},"x2":{"title":"X2","type":"number"},"y1":{"title":"Y1","type":"number"},"y2":{"title":"Y2","type":"number"}},"required":["x1","y1","x2","y2"],"title":"draw_lineArguments","type":"object"},"name":"draw_line"},{"description":"Draw a rectangle outline (stroke only) on a layer.\n\nParameters:\n- x, y: Top-left corner\n- width, height: Rectangle dimensions\n- color: Stroke color as hex \"#rrggbb\" or a basic name (black, white, gray, silver, red, maroon, yellow,\n  olive, lime, green, aqua, teal, blue, navy, fuchsia, purple); uses current foreground if omitted\n- line_width: Stroke width in pixels (default 2.0)\n- layer_name: Target layer; defaults to active layer\n- image_index: Target image index (default 0)\n\nReturns status dict.\n","inputSchema":{"properties":{"color":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Color"},"height":{"title":"Height","type":"integer"},"image_index":{"default":0,"title":"Image Index","type":"integer"},"layer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Layer Name"},"line_width":{"default":2.0,"title":"Line Width","type":"number"},"width":{"title":"Width","type":"integer"},"x":{"title":"X","type":"integer"},"y":{"title":"Y","type":"integer"}},"required":["x","y","width","height"],"title":"draw_rectangleArguments","type":"object"},"name":"draw_rectangle"},{"description":"Draw an ellipse outline (stroke only) on a layer.\n\nParameters:\n- x, y: Top-left corner of the bounding box\n- width, height: Bounding box dimensions\n- color: Stroke color as hex \"#rrggbb\" or a basic name (black, white, gray, silver, red, maroon, yellow,\n  olive, lime, green, aqua, teal, blue, navy, fuchsia, purple); uses current foreground if omitted\n- line_width: Stroke width in pixels (default 2.0)\n- layer_name: Target layer; defaults to active layer\n- image_index: Target image index (default 0)\n\nReturns status dict.\n","inputSchema":{"properties":{"color":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Color"},"height":{"title":"Height","type":"integer"},"image_index":{"default":0,"title":"Image Index","type":"integer"},"layer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Layer Name"},"line_width":{"default":2.0,"title":"Line Width","type":"number"},"width":{"title":"Width","type":"integer"},"x":{"title":"X","type":"integer"},"y":{"title":"Y","type":"integer"}},"required":["x","y","width","height"],"title":"draw_ellipseArguments","type":"object"},"name":"draw_ellipse"},{"description":"Fill a rectangular region with a solid color.\n\nParameters:\n- x, y: Top-left corner\n- width, height: Rectangle dimensions\n- color: Fill color as hex \"#rrggbb\" or a basic name (black, white, gray, silver, red, maroon, yellow,\n  olive, lime, green, aqua, teal, blue, navy, fuchsia, purple)\n- layer_name: Target layer; defaults to active layer\n- image_index: Target image index (default 0)\n\nReturns status dict.\n","inputSchema":{"properties":{"color":{"title":"Color","type":"string"},"height":{"title":"Height","type":"integer"},"image_index":{"default":0,"title":"Image Index","type":"integer"},"layer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Layer Name"},"width":{"title":"Width","type":"integer"},"x":{"title":"X","type":"integer"},"y":{"title":"Y","type":"integer"}},"required":["x","y","width","height","color"],"title":"fill_rectangleArguments","type":"object"},"name":"fill_rectangle"},{"description":"Fill an elliptical region with a solid color.\n\nParameters:\n- x, y: Top-left corner of the bounding box\n- width, height: Bounding box dimensions\n- color: Fill color as hex \"#rrggbb\" or a basic name (black, white, gray, silver, red, maroon, yellow,\n  olive, lime, green, aqua, teal, blue, navy, fuchsia, purple)\n- layer_name: Target layer; defaults to active layer\n- image_index: Target image index (default 0)\n\nReturns status dict.\n","inputSchema":{"properties":{"color":{"title":"Color","type":"string"},"height":{"title":"Height","type":"integer"},"image_index":{"default":0,"title":"Image Index","type":"integer"},"layer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Layer Name"},"width":{"title":"Width","type":"integer"},"x":{"title":"X","type":"integer"},"y":{"title":"Y","type":"integer"}},"required":["x","y","width","height","color"],"title":"fill_ellipseArguments","type":"object"},"name":"fill_ellipse"},{"description":"Fill a layer or selection with a gradient.\n\nWith an active selection, only the selected part of the layer is filled.\n\nParameters:\n- color1: Start color as hex \"#rrggbb\" or a basic name (black, white, gray, silver, red, maroon, yellow,\n  olive, lime, green, aqua, teal, blue, navy, fuchsia, purple); default \"black\"\n- color2: End color, same formats; default \"white\"\n- x1, y1: Gradient start point in image pixels (default 0, 0)\n- x2, y2: Gradient end point in image pixels (default: the image's bottom-right corner);\n  must differ from the start point\n- gradient_type: \"linear\" (default) or \"radial\"\n- layer_name: Target layer; defaults to active layer\n- image_index: Target image index (default 0)\n\nReturns status dict.\n","inputSchema":{"properties":{"color1":{"default":"black","title":"Color1","type":"string"},"color2":{"default":"white","title":"Color2","type":"string"},"gradient_type":{"default":"linear","title":"Gradient Type","type":"string"},"image_index":{"default":0,"title":"Image Index","type":"integer"},"layer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Layer Name"},"x1":{"default":0,"title":"X1","type":"number"},"x2":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"X2"},"y1":{"default":0,"title":"Y1","type":"number"},"y2":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Y2"}},"title":"gradient_fillArguments","type":"object"},"name":"gradient_fill"},{"description":"Paint a batch of brush strokes, working in rounds like a painter.\n\nPaints on an open image. To start a new painting, first call\nnew_canvas(width, height) (white by default), or open a file with open_image.\n\nPaint a few strokes (typically 3-30), look at the result (preview=True or\nget_state_snapshot), then paint the next batch. All strokes in one call\nland on one layer and form a single undo step in GIMP's own history.\nTo be able to discard a round, paint it on a new layer (create_layer)\nand remove it with delete_layer. Every stroke is validated before\nanything is painted.\n\nParameters:\n- strokes: 1-50 stroke objects. Only \"points\" is required:\n    - points: [[x, y], ...] in image pixels, 1-2000 points (one point paints a dab).\n      3-12 points are enough for a curve.\n    - tool: \"paintbrush\" (default), \"pencil\" (hard edge), \"airbrush\", \"eraser\", \"smudge\"\n    - brush: Brush name from list_brushes (default \"2. Hardness 050\")\n    - size: Brush size in pixels, 1-10000 (default 20)\n    - color: Hex \"#rrggbb\", \"#rgb\" or \"#rrggbbaa\", or a basic name like \"white\"\n      (default: current foreground). rgb() and other names are rejected.\n      Ignored by eraser and smudge.\n    - opacity: 0-100 (default 100)\n    - hardness: 0-1 (default: the brush's own)\n    - angle: -180 to 180 degrees (default 0); aspect_ratio: -20 to 20 (default 0)\n    - spacing: Distance between dabs as a fraction of brush size, 0.01-50 (default: the brush's own)\n    - pressure: \"taper\" (default; thin ends like a real stroke), \"none\" (even width),\n      or a list of 0-1 values spread evenly along the stroke, e.g. [0.2, 1, 0.5]\n      (paintbrush, pencil and airbrush only)\n    - taper_affects: \"size\" (default) or \"opacity\" (ends fade instead of thinning)\n    - smooth: true (default) turns the points into a smooth curve; false draws straight segments\n    - mode: Blend mode, e.g. \"normal\" (default), \"multiply\", \"screen\", \"overlay\", \"soft_light\"\n    - strength: 0-100 (default 50) for airbrush and smudge; applies with pressure \"none\"\n      or a pressure list, not with \"taper\"\n- layer_name: Layer to paint on; defaults to the active layer\n- image_index: Target image index (default 0)\n- preview: Also return a snapshot of the whole image after painting\n- preview_max_size: Longest side of the preview in pixels (default 768)\n\nReturns {strokes_painted, layer, bbox, warnings}, plus the preview image when\npreview=True. bbox is {x, y, width, height} around the strokes; pass it to\nget_state_snapshot(region=...) to zoom in on what was just painted.\n\nExample:\n    strokes=[\n      {\"points\": [[100, 400], [300, 330], [520, 380]], \"brush\": \"Oils 01\", \"size\": 120, \"color\": \"#3b6e8f\"},\n      {\"points\": [[140, 420], [300, 370]], \"brush\": \"Bristles 02\", \"size\": 40, \"color\": \"#d9a441\", \"opacity\": 80},\n      {\"points\": [[250, 360], [330, 350]], \"tool\": \"smudge\", \"size\": 50, \"pressure\": \"none\", \"strength\": 40}\n    ]\n","inputSchema":{"properties":{"image_index":{"default":0,"title":"Image Index","type":"integer"},"layer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Layer Name"},"preview":{"default":false,"title":"Preview","type":"boolean"},"preview_max_size":{"default":768,"title":"Preview Max Size","type":"integer"},"strokes":{"items":{"additionalProperties":true,"type":"object"},"title":"Strokes","type":"array"}},"required":["strokes"],"title":"paint_strokeArguments","type":"object"},"name":"paint_stroke"},{"description":"List brushes available to paint_stroke.\n\nParameters:\n- filter: Optional regular expression matched against brush names, e.g. \"Oils|Bristles\"\n\nBrushes that paint well: \"2. Hardness 025\" to \"100\" (plain round), \"Acrylic 01\"/\"03\"\n(dry, textured), \"Bristles 01\" to \"03\" (streaky), \"Oils 01\" to \"03\" (soft blending),\n\"Charcoal 01\"/\"Chalk 01\" (grainy), \"Pencil 02\" (sketchy line), \"Sponge 01\" (soft texture).\n\nReturns: {brushes: [name, ...], count}\n","inputSchema":{"properties":{"filter":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Filter"}},"title":"list_brushesArguments","type":"object"},"name":"list_brushes"},{"description":"Pick a color from the canvas, like a painter's eyedropper.\n\nSame as get_pixel_color, plus optional averaging over a radius.\n\nParameters:\n- x, y: Image coordinates in pixels\n- radius: Average the color over this many pixels around the point (default 0 = one pixel)\n- sample_merged: true (default) samples what is visible across all layers; false samples one layer\n- layer_name: Layer to sample when sample_merged is false; defaults to the active layer\n- image_index: Target image index (default 0)\n\nReturns: {color_hex: \"#rrggbb\" (sRGB, usable as a paint_stroke color), alpha: 0-1}\n","inputSchema":{"properties":{"image_index":{"default":0,"title":"Image Index","type":"integer"},"layer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Layer Name"},"radius":{"default":0,"title":"Radius","type":"number"},"sample_merged":{"default":true,"title":"Sample Merged","type":"boolean"},"x":{"title":"X","type":"number"},"y":{"title":"Y","type":"number"}},"required":["x","y"],"title":"sample_colorArguments","type":"object"},"name":"sample_color"},{"description":"Add a text layer to an image.\n\nParameters:\n- text: The text string to render\n- x, y: Position of the text layer's top-left corner (default 0, 0)\n- font: Font family name — \"Sans\" (default), \"Serif\", etc.\n- size: Font size in pixels (default 24)\n- color: Text color as hex \"#rrggbb\" or a basic name (black, white, gray, silver, red, maroon, yellow,\n  olive, lime, green, aqua, teal, blue, navy, fuchsia, purple); default \"black\"\n- image_index: Target image index (default 0)\n\nReturns: {layer_name, layer_id, text_width, text_height, position}\n","inputSchema":{"properties":{"color":{"default":"black","title":"Color","type":"string"},"font":{"default":"Sans","title":"Font","type":"string"},"image_index":{"default":0,"title":"Image Index","type":"integer"},"size":{"default":24,"title":"Size","type":"integer"},"text":{"title":"Text","type":"string"},"x":{"default":0,"title":"X","type":"integer"},"y":{"default":0,"title":"Y","type":"integer"}},"required":["text"],"title":"add_textArguments","type":"object"},"name":"add_text"},{"description":"Edit an existing text layer's content or formatting.\n\nParameters:\n- layer_name: Name of the text layer to edit\n- text: New text content (omit to leave unchanged)\n- font: New font family (omit to leave unchanged)\n- size: New font size in pixels (omit to leave unchanged)\n- color: New text color as hex \"#rrggbb\" or a basic name (black, white, gray, silver, red, maroon, yellow,\n  olive, lime, green, aqua, teal, blue, navy, fuchsia, purple) (omit to leave unchanged)\n- image_index: Target image index (default 0)\n\nAll values are checked before anything changes. A font name GIMP does not have falls back to\na similar or default font, so check the returned font.\n\nReturns: {layer_name (it can change with the text), text, font, size}\n","inputSchema":{"properties":{"color":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Color"},"font":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Font"},"image_index":{"default":0,"title":"Image Index","type":"integer"},"layer_name":{"title":"Layer Name","type":"string"},"size":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Size"},"text":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Text"}},"required":["layer_name"],"title":"edit_textArguments","type":"object"},"name":"edit_text"},{"description":"List fonts installed in GIMP.\n\nParameters:\n- filter: Optional text matched against font names, case-insensitive (e.g. \"sans\")\n- limit: Maximum number of names to return (default 100). There can be thousands of\n  fonts: if truncated is true, narrow with filter instead of assuming a font is missing.\n\nReturns: {fonts: [font_name, ...], count (returned), total (matching filter), truncated}\n","inputSchema":{"properties":{"filter":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Filter"},"limit":{"default":100,"title":"Limit","type":"integer"}},"title":"list_fontsArguments","type":"object"},"name":"list_fonts"},{"description":"Apply a drop shadow effect to a layer.\n\nParameters:\n- offset_x, offset_y: Shadow offset in pixels (default 5, 5)\n- blur_radius: Shadow softness radius (default 10)\n- color: Shadow color as hex \"#rrggbb\" or a basic name (black, white, gray, silver, red, maroon, yellow,\n  olive, lime, green, aqua, teal, blue, navy, fuchsia, purple); default \"black\"\n- opacity: Shadow opacity 0-100 (default 60)\n- layer_name: Target layer; defaults to active layer\n- image_index: Target image index (default 0)\n\nReturns status dict.\n","inputSchema":{"properties":{"blur_radius":{"default":10,"title":"Blur Radius","type":"number"},"color":{"default":"black","title":"Color","type":"string"},"image_index":{"default":0,"title":"Image Index","type":"integer"},"layer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Layer Name"},"offset_x":{"default":5,"title":"Offset X","type":"integer"},"offset_y":{"default":5,"title":"Offset Y","type":"integer"},"opacity":{"default":60,"title":"Opacity","type":"number"}},"title":"apply_drop_shadowArguments","type":"object"},"name":"apply_drop_shadow"},{"description":"Apply Gaussian blur as a destructive filter operation.\n\nSame as blur with equal horizontal and vertical radii.\n\nParameters:\n- radius: Blur radius in pixels (default 5.0)\n- layer_name: Target layer; defaults to active layer\n- image_index: Target image index (default 0)\n\nReturns status dict.\n","inputSchema":{"properties":{"image_index":{"default":0,"title":"Image Index","type":"integer"},"layer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Layer Name"},"radius":{"default":5.0,"title":"Radius","type":"number"}},"title":"apply_gaussian_blurArguments","type":"object"},"name":"apply_gaussian_blur"},{"description":"Pixelate a layer using a mosaic/block effect.\n\nParameters:\n- block_size: Size of each mosaic block in pixels (default 10)\n- layer_name: Target layer; defaults to active layer\n- image_index: Target image index (default 0)\n\nReturns status dict.\n","inputSchema":{"properties":{"block_size":{"default":10,"title":"Block Size","type":"integer"},"image_index":{"default":0,"title":"Image Index","type":"integer"},"layer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Layer Name"}},"title":"apply_pixelateArguments","type":"object"},"name":"apply_pixelate"},{"description":"Apply an emboss (bas-relief) effect to a layer.\n\nParameters:\n- azimuth: Light direction in degrees 0-360 (default 315 = top-left)\n- elevation: Light elevation angle 0-90 (default 45)\n- depth: Effect depth/intensity, whole number 1-100 (default 2)\n- layer_name: Target layer; defaults to active layer\n- image_index: Target image index (default 0)\n\nReturns status dict.\n","inputSchema":{"properties":{"azimuth":{"default":315,"title":"Azimuth","type":"number"},"depth":{"default":2,"title":"Depth","type":"number"},"elevation":{"default":45,"title":"Elevation","type":"number"},"image_index":{"default":0,"title":"Image Index","type":"integer"},"layer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Layer Name"}},"title":"apply_embossArguments","type":"object"},"name":"apply_emboss"},{"description":"Apply a vignette darkening effect around the edges of a layer.\n\nParameters:\n- softness: Edge softness / fade width, 0.0-1.0 (default 0.8)\n- shape: \"circle\" (default), \"square\", \"diamond\", \"horizontal\" or \"vertical\"\n- layer_name: Target layer; defaults to active layer\n- image_index: Target image index (default 0)\n\nReturns status dict.\n","inputSchema":{"properties":{"image_index":{"default":0,"title":"Image Index","type":"integer"},"layer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Layer Name"},"shape":{"default":"circle","title":"Shape","type":"string"},"softness":{"default":0.8,"title":"Softness","type":"number"}},"title":"apply_vignetteArguments","type":"object"},"name":"apply_vignette"},{"description":"Add noise/grain to a layer.\n\nParameters:\n- amount: Noise intensity 0.0-1.0 (default 0.2)\n- layer_name: Target layer; defaults to active layer\n- image_index: Target image index (default 0)\n\nReturns status dict.\n","inputSchema":{"properties":{"amount":{"default":0.2,"title":"Amount","type":"number"},"image_index":{"default":0,"title":"Image Index","type":"integer"},"layer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Layer Name"}},"title":"apply_noiseArguments","type":"object"},"name":"apply_noise"},{"description":"Export an image as a complete icon set for Android or iOS.\n\nAndroid sizes: 48 (mdpi), 72 (hdpi), 96 (xhdpi), 144 (xxhdpi),\n               192 (xxxhdpi), 512 (Play Store)\niOS sizes: 20x1/2/3, 29x1/2/3, 40x2/3, 60x2/3, 76x1/2, 83.5x2, 1024x1\n\nParameters:\n- output_dir: Directory to write icon files into\n- platform: \"android\" (default) or \"ios\"\n- source_image_index: Image to use as source (default 0)\n- format: Output format — \"png\" (default)\n\nReturns: {exported: [{size, file_path}], count, platform}\n","inputSchema":{"properties":{"format":{"default":"png","title":"Format","type":"string"},"output_dir":{"title":"Output Dir","type":"string"},"platform":{"default":"android","title":"Platform","type":"string"},"source_image_index":{"default":0,"title":"Source Image Index","type":"integer"}},"required":["output_dir"],"title":"export_icon_sizesArguments","type":"object"},"name":"export_icon_sizes"},{"description":"Export an image as both JPEG and PNG, choosing the smaller format.\n\nParameters:\n- output_dir: Directory to write output files\n- jpeg_quality: JPEG quality 1-100 (default 85)\n- png_compression: PNG compression level, 0 (fastest, largest) to 9 (smallest; default)\n- max_width / max_height: Optional scaling before export\n- image_index: Source image index (default 0)\n\nReturns: {jpeg_path, jpeg_size, png_path, png_size, recommendation}\n","inputSchema":{"properties":{"image_index":{"default":0,"title":"Image Index","type":"integer"},"jpeg_quality":{"default":85,"title":"Jpeg Quality","type":"integer"},"max_height":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Max Height"},"max_width":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Max Width"},"output_dir":{"title":"Output Dir","type":"string"},"png_compression":{"default":9,"title":"Png Compression","type":"integer"}},"required":["output_dir"],"title":"export_web_optimizedArguments","type":"object"},"name":"export_web_optimized"},{"description":"Disabled: always returns an error and leaves the image unchanged.\n\nOn GIMP 3.2 this erased the whole layer instead of warping it, and GIMP 3.2 gives\nplug-ins no working warp operation. Use GIMP's Warp Transform tool by hand.\n\nParameters:\n- vectors: List of warp stroke dicts, each with:\n    - x, y      : center of the warp influence (pixels)\n    - dx, dy    : push direction — negative dy = push upward\n    - radius    : influence radius in pixels (default: 40)\n    - amount    : deform strength 0–1 (default: 0.3)\n- image_index: Which open image to edit (default: 0)\n- layer_name: Target layer; omit to use the active/top layer\n\nExamples — make a character smile:\n    warp_region(vectors=[\n        {\"x\": 215, \"y\": 355, \"dx\":  5, \"dy\": -8, \"radius\": 18, \"amount\": 0.45},\n        {\"x\": 295, \"y\": 355, \"dx\": -5, \"dy\": -8, \"radius\": 18, \"amount\": 0.45},\n        {\"x\": 255, \"y\": 370, \"dx\":  0, \"dy\": -4, \"radius\": 22, \"amount\": 0.30},\n    ])\n\nReturns: {\"warped_vectors\": N}\n","inputSchema":{"properties":{"image_index":{"default":0,"title":"Image Index","type":"integer"},"layer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Layer Name"},"vectors":{"items":{},"title":"Vectors","type":"array"}},"required":["vectors"],"title":"warp_regionArguments","type":"object"},"name":"warp_region"},{"description":"Resize all open images to a common target size.\n\nParameters:\n- width / height: Target dimensions in pixels (provide one or both)\n- scale_factor: Proportional scale (e.g. 0.5 = 50%); overrides width/height if set\n- maintain_aspect: Preserve aspect ratio when only one dimension is given (default True)\n\nReturns: {results: [{image_id, old_width, old_height, new_width, new_height}], count}\n","inputSchema":{"properties":{"height":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Height"},"maintain_aspect":{"default":true,"title":"Maintain Aspect","type":"boolean"},"scale_factor":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Scale Factor"},"width":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Width"}},"title":"batch_resizeArguments","type":"object"},"name":"batch_resize"},{"description":"Combine multiple frames into a sprite sheet PNG.\n\nParameters:\n- output_path: Absolute path for the output PNG file\n- columns: Number of columns in the grid (defaults to square root of frame count)\n- padding: Pixel gap between frames (default 0)\n- source: \"layers\" (each layer is a frame, in list_layers order; default) or \"images\"\n  (each open image's visible result, in list_images order)\n- image_index: Source image when source=\"layers\" (default 0)\n\nEach cell is the size of the first frame; bigger frames are cropped. Transparency is kept.\n\nReturns: {file_path, columns, rows, frame_width, frame_height, count}\n","inputSchema":{"properties":{"columns":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Columns"},"image_index":{"default":0,"title":"Image Index","type":"integer"},"output_path":{"title":"Output Path","type":"string"},"padding":{"default":0,"title":"Padding","type":"integer"},"source":{"default":"layers","title":"Source","type":"string"}},"required":["output_path"],"title":"export_sprite_sheetArguments","type":"object"},"name":"export_sprite_sheet"},{"description":"Export an image resized for multiple social media platforms.\n\nPlatform sizes (all in pixels):\n- instagram_square: 1080x1080\n- instagram_story: 1080x1920\n- twitter_header: 1500x500\n- facebook_cover: 820x312\n- youtube_thumbnail: 1280x720\n\nParameters:\n- output_dir: Directory to write output files\n- platforms: List of platform names to export (omit for all five)\n- image_index: Source image index (default 0)\n\nReturns: {exported: [{platform, file_path, width, height}], count}\n","inputSchema":{"properties":{"image_index":{"default":0,"title":"Image Index","type":"integer"},"output_dir":{"title":"Output Dir","type":"string"},"platforms":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"default":null,"title":"Platforms"}},"required":["output_dir"],"title":"export_social_media_kitArguments","type":"object"},"name":"export_social_media_kit"},{"description":"List all images currently open in GIMP.\n\nIndex 0 is the most recently opened or created image, and indices shift when\nimages are opened or closed; image_id stays the same for an image's lifetime.\nEvery image_index parameter uses this order.\n\nReturns:\n- images: list of {index, image_id, name, width, height, color_mode,\n                   num_layers, file_path, is_dirty}\n- count: total number of open images\n","inputSchema":{"properties":{},"title":"list_imagesArguments","type":"object"},"name":"list_images"},{"description":"Raise a specific image's window to the front in GIMP.\n\nWorks for images opened with new_canvas or open_image. GIMP 3 gives plug-ins\nno way to find windows opened from GIMP's own menus, so those return an error;\nevery other tool still works on them by image_index.\n\nParameters:\n- image_index: Index of the image to activate (from list_images)\n\nReturns status dict.\n","inputSchema":{"properties":{"image_index":{"title":"Image Index","type":"integer"}},"required":["image_index"],"title":"set_active_imageArguments","type":"object"},"name":"set_active_image"},{"description":"Convert an image to a different color mode.\n\nParameters:\n- mode: \"RGB\", \"RGBA\", \"GRAY\", \"GRAYA\" (the A forms also add alpha to every layer) or \"INDEXED\"\n- num_colors: Number of colors for INDEXED mode, 1-256 (default 256)\n- image_index: Target image index (default 0)\n\nReturns status dict.\n","inputSchema":{"properties":{"image_index":{"default":0,"title":"Image Index","type":"integer"},"mode":{"title":"Mode","type":"string"},"num_colors":{"default":256,"title":"Num Colors","type":"integer"}},"required":["mode"],"title":"convert_color_modeArguments","type":"object"},"name":"convert_color_mode"},{"description":"Close an image, optionally saving as XCF first.\n\nCloses images opened with new_canvas or open_image, and images that have no\nwindow. GIMP 3 gives plug-ins no way to close a window opened from GIMP's own\nmenus, so for those images this returns an error and they must be closed in GIMP.\n\nParameters:\n- image_index: Index of the image to close (default 0 = most recently opened)\n- save_first: If True, save as XCF before closing (default False). An image opened from\n  an XCF file is saved over that file. Any other image is saved as a new .xcf next to the\n  file it came from (in the temp directory if it has none), named name-2.xcf, name-3.xcf, ...\n  instead of overwriting an existing file. Without save_first, unsaved changes are discarded.\n\nReturns: {closed_image_id, saved_to (XCF path, or null)}\n","inputSchema":{"properties":{"image_index":{"default":0,"title":"Image Index","type":"integer"},"save_first":{"default":false,"title":"Save First","type":"boolean"}},"title":"close_imageArguments","type":"object"},"name":"close_image"},{"description":"Get the bounding rectangle of the current selection.\n\nParameters:\n- image_index: Target image index (default 0)\n\nReturns: {has_selection, x, y, width, height}\n","inputSchema":{"properties":{"image_index":{"default":0,"title":"Image Index","type":"integer"}},"title":"get_selection_boundsArguments","type":"object"},"name":"get_selection_bounds"},{"description":"Get the color of a single pixel.\n\nsample_color does the same and can average over a radius; it reports alpha as 0-1,\nthis tool as 0-255.\n\nParameters:\n- x, y: Image pixel coordinates\n- image_index: Target image index (default 0)\n- layer_name: Layer to sample when sample_merged is false; defaults to active layer\n- sample_merged: true (default) samples what is visible across all layers;\n  false samples only one layer\n\nReturns: {color_hex (sRGB), color_rgb: [r, g, b], alpha (0-255), sampled (what was read)}\n","inputSchema":{"properties":{"image_index":{"default":0,"title":"Image Index","type":"integer"},"layer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Layer Name"},"sample_merged":{"default":true,"title":"Sample Merged","type":"boolean"},"x":{"title":"X","type":"integer"},"y":{"title":"Y","type":"integer"}},"required":["x","y"],"title":"get_pixel_colorArguments","type":"object"},"name":"get_pixel_color"},{"description":"Get histogram statistics for one channel of a layer.\n\nParameters:\n- channel: \"value\" (all; default), \"red\", \"green\", \"blue\", \"alpha\"\n- image_index: Target image index (default 0)\n- layer_name: Layer to measure; defaults to the active layer\n\nReturns: {layer, mean, std_dev, median (on a 0-255 scale), pixels (in the layer),\ncount (pixels in range), percentile (fraction of pixels in range)}\n","inputSchema":{"properties":{"channel":{"default":"value","title":"Channel","type":"string"},"image_index":{"default":0,"title":"Image Index","type":"integer"},"layer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Layer Name"}},"title":"get_histogramArguments","type":"object"},"name":"get_histogram"}]}}}
