AI assistants (MCP)
Connect Claude Code, Claude Desktop, Codex, Cursor, Windsurf, VS Code or any MCP app to Palette Grid 2.0 in your own Blender. It runs on your computer, comes with Palette Grid 2.0 and stays off until you turn on AI Assistants in Palette Grid's preferences. The assistant gets 60 tools:
Session and setup
status: What the assistant is talking to: the versions of the Palette Grid MCP, Palette Grid and Blender, whether the Palette Grid engine is ready, how many palettes exist and which is active, Blender's mode, the active and selected objects, the .blend file, whether it has unsaved changes and whether save_file may save it. Call this first, and whenever another tool reports Blender or Palette Grid as unavailable. With several Blenders open it lists them instead.style_guide: How to colour a model so it looks professional with Palette Grid: how to think about hue, value, saturation and light (topic thinking), what light does to each material (materials), placing faces by an expression (fields), picking exactly the faces you mean (selecting), building the palette (palette), the passes (workflow), checking the result (review), and a worked example (example). Read it before colouring a model.list_blenders: Every Blender with Palette Grid's AI Assistants on: number, .blend file name (Untitled when unsaved), Blender and Palette Grid versions, and which one this conversation works in.select_blender: Choose the Blender to work in from now on, when several are open: its number from list_blenders, or its .blend file name. Ask the user which one first. Blender may ask the user to allow this app.
Read palettes
list_palettes: Every Palette Grid palette in the open Blender file: index, name, size in pixels, number of blocks, strips and layers, colourway names, and which one is active.get_palette: One palette in full: its blocks and every strip (index, name, flat or gradient, colour stops as hex with alpha, gradient direction, colour mode, interpolation, effects, and the strip's rectangle in UV space), which end of each gradient is dark (dark_end, and ends_close when the ends are nearly as light: a field's 0 can then flip side), its layers bottom first (kind, blend, opacity, visibility, lock, folder, decal; where each sits: rect, the palette-px box it covers, size_px, its picture's size, and transform, layer_set's fields) and colourways. Strip indices and names from here are what the other tools take.palette_preview: The palette's texture as a picture (PNG, downscaled to max_size), to look at the colours and layout.model_strip_usage: For each model showing the palette: how many faces sit in each strip, where on it (the lowest and highest t their corners reach, t from the strip's first stop as read_uvs counts it) and the colours there, how many reach past their strip's edge (they pick up a neighbour's colour), and how many sit in no strip.read_uvs: Exact UVs of one model, for precise matching: per face the strip it sits on (as "block:strip", e.g. 1:3, which the strip arguments of match_colours take) and, per corner, its UV, its place on the strip (t along the gradient: 0 the first stop, 1 the last; s across: 0..1) and the colour it shows (#RRGGBB, the texel the palette material samples). Faces on no strip give their raw UVs, faces on a decal their place in it. Readable on big meshes: pick faces with a selector, page with offset / limit (the reply gives the next offset), or per face for the centre only. Faces read against the palette their material shows; faces whose material shows an image (an Image Texture into its colour, through reroutes and groups, on a plain UV map) read that image's colours (nearest pixel), and the reply says why when a material cannot be read.
Understand and see models
list_objects: Every mesh in the scene, one line each: whether it shows (hidden objects are marked), whether it renders, its collections, faces, materials and which palettes they show, the copies sharing its mesh, its named groups and how many steps paint recorded on it. Call it first in a scene you do not know, to find the objects to work on and to tell a visible copy from a hidden one.set_viewport: Set the user's 3D Viewports to see palette work as it is meant to be seen: flat (Solid, Flat light, Texture colour: the palette colours exactly, no scene lighting) or material (Material Preview). Call it at the start.describe_model: A model in numbers, to decide how to colour it: size and bounds, modifiers, materials and which show a palette, its connected parts (largest first, with centre, size, and how much faces up, down or sideways), its flat regions (faces that stay nearly flat together: windows, panels, sides; largest first), faces per facing direction and per height band, and faces per strip. Every group comes with the selector that picks it, for the face tools (put_faces_in_strip, auto_form, shade_faces...). detail "faces": every face (up to 2000, the picked ones only when faces is given) with its centre, normal, area, part and strip. include: only some sections (segments: parts split along inward creases, numbered segment:<n>; e.g. ["parts"] for many objects at once). An answer too long to read comes back shorter (the overview, or the first parts) with how to ask for the rest.view_model: Palette Grid's own picture of models, from several sides at once (default front, right, top and 3/4). color_by "flat" (default): the palette colours exactly, unlit, as the style is meant to look; "lit": the same with a light added to read the shape; "value": a grey value study of those colours, unlit (each face the grey of its colour's OKLab lightness, the measure review_colours uses; check light and form); "objects": a colour per object (to find which object is which); "parts": a colour per connected part; "facing": a colour per direction; "faces:<selector>": the faces a selector picks in blue, to check a selection before changing it; "groups:A,B,C": one colour per group (grey: in none), to check several zones at once; "strips": each face in its strip's colour, red where a face sits in no strip. Parts, regions, objects and groups each get their own colour, listed in the data legend. Objects that show another palette are drawn with theirs. orbit: 6 to 12 views all around (above and below) in one picture; hidden: also list the faces of the selection or groups no view sees. Works without a 3D Viewport.pick: What is under points of a view_model picture. Per point: the object and face seen there, its part, flat region, facing, material, named groups and strip, with selectors for the face, part and region. Point at a mistake you see, then fix it by name.look: Blender's own picture: the user's 3D Viewport as they see it (view "user", the default), or the models from the front, right, top or 3/4, in the viewport's shading (Material Preview shows palette colours; the result says when the shading does not). Needs a 3D Viewport open in Blender; view_model does not.
Build palettes
create_palette: A new palette made of the given strips (flat colours and gradients), laid out in a grid; it becomes the active palette and its texture is drawn.create_palette_from_template: A new palette from one of Palette Grid's templates: STYLIZED (stylized props), RETRO16 (a 16-colour retro set), FOLIAGE_SKIN (foliage and skin ramps), HUE_RAMPS (shaded ramps around the hue wheel).create_ramps_palette: A new palette with one shading ramp per base colour: darker steps lean toward blue-violet, lighter steps toward warm yellow, as painters shade. Each ramp is one gradient strip, or one flat strip per step.edit_strips: Change strips of a palette block: colours (flat or gradient), name, type, direction, colour mode, interpolation, effects. The palette's texture and every model using it update.add_strips: New strips in a block, after a given strip or at the end. The layout grows to fit and models keep their colours.delete_strips: Remove strips from a block. Models whose faces used them keep their UVs where they are.move_strip: Move a strip to another place in its block (already there: nothing changes, and it says so). Models keep their colours.reorder_strips: Put all of a block's strips in a new order in one go (each listed once, by index or name). Models keep their colours; one undo step.delete_unused_strips: Delete the strips no face of any model sits on (faces on hidden objects count, and are named). A dry run by default: it lists exactly what would go, and what is kept and why (a locked block, a block's last strip). Run it after match_colours or transfer_uvs has moved faces off strips.set_layout: A block's grid (columns x rows) and / or the palette texture's size in pixels. Models keep their colours.add_block: A new block of strips on the palette; it becomes the active block. With rect it goes exactly there; otherwise into free space, or, when the palette is full, on top in the middle, covering what is there (the result says which blocks), unless if_no_space is refuse. In the layer stack it goes with the strips, under image layers, fills and decals. One undo step.set_block_rect: Put a block exactly on a rect of the palette: moved and resized, its strips drawn at that size. Models keep their colours (their faces follow); one undo step. Says which blocks it now covers.
Layers and colourways
layer_add_image: An image layer on top of the stack (patterns, pictures, decals): an image already in Blender, or an image file, at its own size (fitted inside a smaller palette). crop, size and key_colour work on a copy the palette owns; the image itself is not changed. A picture with no transparency of its own (a JPEG) gets it from key_colour. decal true makes it a decal (faces can be put on it with place_faces), placed in free space when there is some. A file already added is read again from disk (changed since?). below / above put it under or over another layer instead. Place it with layer_set rect; one undo step.layer_add_fill: A layer of one colour (a background under decals, a panel): over a rect of the palette, or all of it, on top of the stack or below / above another layer. It replaces nothing: strips and pictures over it still show, and faces placed on its rect (place_faces rect) show its colour. One undo step.layer_move: Move a layer: to_index (0 = the bottom of the stack, as get_palette numbers layers), or below / above another layer (it joins that layer's folder). Faces on strips and decals keep their colours. One undo step.layer_remove: Delete a layer: an image, fill or decal layer (faces put on a decal keep their UVs where they are), or a strip block (not the palette's last one; the result says which faces were left on its strips). A locked layer is unlocked first with layer_set. One undo step.layer_set: Rename a layer, or set its blend mode, opacity, visibility, lock, placement (rect: fill a rect of the palette; or transform: centre in palette pixels, scale, rotation, flips), whether it is a decal (faces can be put on it) and a decal's backing colour. Everything given is one undo step; get_palette reads placement back.colourway: Colourways are colour sets on one layout (seasons, teams). add: a copy of the current colours, which becomes the one worn. switch: wear another. rename / remove: the named (default: the worn) colourway.manage_palette: activate: make it the active palette. rename / duplicate (optionally named) / delete (the image is removed after a few seconds unless undone in Palette Grid).
Colour models
assign_material: Give mesh objects a material showing the palette; their faces then show the colours their UVs point at. Needed before texturing a model with the other tools.put_faces_in_strip: Move faces' UVs into a strip so they take its colour: fill (stretch over the strip), contain (fit inside, keeping proportions) or keep_place (faces already in a strip keep their place in it).place_faces: Put faces on a decal (a picture in the palette; as the sidebar's Put on Image: the faces' shape from the model, flat or unwrapped, the picture's size and place on them) or into a rect of the palette, their UV layout mapped onto it: fill (stretched), contain (scaled evenly, centred) or keep_uv_layout (moved only). The faces get the palette's material; one undo step. Says when a decal now covers strips, and what a rect lies on (strips, decals and image layers), and when a decal's border has no backing colour (black on empty space). An image layer is not a decal until layer_set decal=true makes it one. Recorded in the scene's recipe (as paint's steps), so relight and paint edit put the faces here again in order instead of pulling them back onto strips.radial_gradient: Lay faces on a gradient strip by their distance from a centre: the strip's FIRST colour at the centre, its last at the farthest faces (invert swaps them; the result names the colour at the centre). per_part centres it on each connected part (one call for every wheel, rim or lamp); axis measures from a line instead of a point (wheels: their axle axis).auto_form: Lay a gradient strip along each connected part's own shape (horns, branches, leaves): from an open edge, the thickest point, or the bottom, to the tips.gradient_along_line: Lay a gradient strip along a line in world space: faces at start get its first colour, faces at end its last.shade_with_light: One way to place faces on a gradient strip: by a key light, so surfaces facing the light take the strip's light end and undersides its dark end, plus a little lighter toward the top. Good for rounded and organic forms and small parts; most designed surfaces want a field instead (paint, method field: style_guide topics thinking and fields), and its output is a draft to shape, not the answer.paint: Colour a model: a list of steps applied in order, later steps painting over or building on earlier ones, one undo step. A field step places faces by an expression you write over what is known about the model (height, normals, light, view, crevices, contacts, edges, position along a part, randomness, the faces' current places...): any look, from a calm panel to a reflection band, a crease shadow or a lit rim; style_guide topic fields. light, highlight, radial, line and flat are ready-made placements; place puts faces on a decal or rect as place_faces does. The steps go into the scene's recipe (one ordered list, each step with its objects once, its strip kept by id so a renamed strip is still found, the call's light kept with the steps that used it); relight repaints it. A step that cannot be done is reported, with why; the others run, but add / scale steps after a failed step on the same objects are skipped (they would move faces from where they were). Faces two narrow steps both place are reported (the later shows). To change one layer, send only that step with its label and edit: true (it is replaced where it is, for these objects; a new label goes at the end, or after the label in its after); remove drops recorded steps by label; either way the whole recipe of these objects paints again.relight: Paint models again from the scene's recipe (their steps, in order, place steps included), with a new key light and / or contrast (1 as recorded, 0.7 calmer, 1.3 stronger), in one call. light replaces the light of every step that set none of its own (it had the paint call's, or the default); all_lights also the steps that set one. The result says which steps took it.define_group: Save a set of faces under a name on each model (it stays with the model), so selectors can say group:<name>. The faces come from a selector (faces), from pointing at a view_model picture (picture), or both (what the picture picks that the selector also picks): a stripe along an edge, a patch, a decal, exactly as you see it. mode add / subtract changes a group instead of replacing it: with faces "selected" (the user's own selection in Blender, see select_faces), the artist fixes a group in one call. live: true keeps the selector and picks again whenever the group is used (Hair = part:1 & !group:Skin follows Skin; circles refused). partition: groups of one partition never share a face (a face put into one leaves the others). remove: true deletes the group (from the objects named, else from every object).select_faces: Put faces into Blender's own selection, in Edit Mode, for the user to see and fix by hand: what a selector or group picks (mode set: exactly these; add / subtract: to or from what is selected now). Then read their adjusted selection back with faces "selected" (define_group mode set / add / subtract, or any face tool): the fastest way to agree on a zone with the artist.shade_faces: Slide faces along the gradient strip they already sit in (slide: a share of the gradient, -1..1; + toward its last colour), each face on its own and never past its strip's end (the result says how many faces reached the end and moved less), and / or give each strip's faces more or less of it (scale: 1 keeps their range).select_faces_using_strip: Select, in Edit Mode, every face of the palette's models that uses a strip (or of one object).
Review and consolidate
review_colours: Observations on a coloured model, facts with the question each raises (never orders: a calm zone may be meant): the value key, touching parts that look alike, wide ranges inside one material, upward chamfers that read like their part, saturation on large surfaces, faces never laid out (the only errors). Each comes with its faces. reference (a picture) or value_key judge the value key against what the asset should be instead of usual palette work (a deep-red character is meant to be dark).review_zones: Selection mistakes in the zones a model is coloured by (its named groups unless zones says): small islands apart from the rest, faces surrounded by another zone, faces straddling a zone's edge (their selector holds at some corners only), faces in several zones or in none, ragged borders. Each comes with its faces as a selector and, where one helps, a selector that fixes it. Run it after defining groups and before painting.transfer_uvs: Copy the UVs of a reference model onto the matching faces of others, e.g. SUV -> SUV.001: same topology (face for face, corner for corner), or matched by face position and normal (copies moved, rotated or edited a little). Remap: copy (UVs as they are), strip (each face onto the strip of the same name in the target's palette, same place), colour (each source strip onto the target palette's strip and range that best keep its colours, gradients staying continuous), auto (copy on the same palette, else colour). Faces on decals and detail strips go to the one of the same name. Says what matched, what did not (face indices, ready for faces) and the colour error per strip (OKLab distance x 100: under 2 is invisible). One undo step; dry_run reports without writing.match_colours: Colour-preserving palette consolidation: for each source strip (or hex colour), find where on other strips its colours are best reproduced: a flat colour gets a place on a strip, a gradient a range of a strip (either way round) that holds its ramp. Reports the error per source (OKLab distance x 100, mean, worst and at each stop; under 2 is invisible, under 5 close) and two runners-up. dry_run (the default) changes nothing; with dry_run false the faces on each source strip move to its match (one undo step), from another palette too (the faces then get this palette's material). Source strips stay: delete_strips removes them once model_strip_usage shows nothing uses them. Typical: add_strips a shared gradient, match_colours into it as a dry run, then apply.
Scene, files and export
bake_vertex_colors: Write the palette colours models show into a colour attribute, for game engines and exports without textures.import_palette_file: Read a palette file: .pgridpalette, .json, .ase, .aco, .gpl, .hex, .pal, .txt or .swatches, into a new palette or into the active one.export_palette_file: Save a palette as .pgridpalette (a PNG with the whole palette inside) or the older .json. Overwrites the file.export_swatches: Save a palette's colours for other apps: ASE (Adobe, Affinity, Krita), GPL (GIMP, Krita), HEX (Lospec), PNG (one pixel per colour). Overwrites the file.export_texture: Save the palette texture as it shows now (the colourway worn, if any) as a PNG file. Nothing in the palette changes (no colourway is made). Overwrites the file.export_colourways: Save one PNG texture per colourway of a palette into a folder. Overwrites files of the same names.duplicate_object: A copy of an object in the same collections, with its own mesh (UVs, materials, colours) unless linked. One undo step.export_model: Export objects as glTF for game engines and viewers: GLB (one file) or glTF (a .gltf, a .bin and the textures beside it), with their materials and the palette texture as it shows (image layers and decals included), modifiers applied. Never replaces an existing file unless overwrite.save_file: Save the .blend file, when the user wants it saved: to its own path, or to filepath (an untitled file, or save as; the open file becomes that one). Only when the user allows it in Palette Grid's preferences (status says may_save); otherwise ask the user to press Ctrl+S. Never replaces another existing file unless overwrite.