Buy

MCP tools

Agents design in Immaculate through its MCP server, which runs inside the app. With the tools below they read the canvas and its code, write HTML, and use your tokens and components, so they never need to take over your mouse and keyboard. To connect Claude Code, Codex or another MCP client, see Connect your agent.

A parameter of type node takes a node id, an immaculate://node/<id> link from Copy link for agents, or ref:<name> for a node named by an earlier call in the same response.

Reading

See where the agent is working, what is on the canvas, how it looks and the code behind it.

get_context

The project you work in, its canvases, the screens on the open canvas, and the user's current selection. You keep working in that project when the user opens another; name a project to work in it instead. Start here, unless your prompt already holds it.

  • projectstring

    A project's name or id, to work in it from now on, such as a project the user names

get_tree

An outline of nodes with ids, names, sizes and layout. Omit node to outline the whole open canvas.

  • nodenode

    The node to outline. Leave out to outline the canvas

  • canvasstring

    A canvas id, when not outlining a node

  • depthinteger1 to 20

    Levels to include. Defaults to 3 for a canvas and 12 for a node

get_code

The code of nodes. By default HTML and inline CSS, with data-id on every element so you can update them. format "react" gives React components styled with Tailwind CSS v4, ending with a @theme block for the tokens they use and a link for their fonts. Image assets appear as local file paths you can read.

  • nodesnode[]Required

    The nodes whose code to return

  • formatstring

    html (default) or react, for React with Tailwind CSS

    htmlreact

  • componentsboolean

    For react: write component instances as references, such as <ButtonPrimary />

get_design_brief

What a node is, in one call: its size and device, its regions (top bar, sidebar, content) and the layout of each in screen order, the text styles, colors and components it uses, which controls are active, the designer's notes, and what in its code may mislead, such as layers placed absolutely inside auto layout or generic names. Call it first when the user sends a node, then read details with get_tree and get_code.

  • nodenodeRequired

    The node to describe, such as one the user sent

find_nodes

Searches node names and text on a canvas. Case-insensitive.

  • querystringRequired

    Text to find in node names and text

  • canvasstring

    A canvas id. Defaults to the open canvas

get_screenshot

A PNG of a node as it renders in Immaculate. Use it to check layout, spacing and contrast after changes. Tall screens come back scaled down, so check their sections one by one at scale 1 for detail.

  • nodenodeRequired

    The node to draw

  • scalenumber0.25 to 3

    Pixel density. Defaults to 1

Design guide and directions

Read how to design well in Immaculate, and propose starting looks for a new project.

get_design_guide

How to design well in Immaculate. Without a topic it gives Immaculate's workflow and rules and Impeccable's quality floor: read that once before designing, unless the immaculate-design skill or your instructions already hold it. Topics add depth afterwards, never in place of it: shaders (every shader kind, its parameters and presets, and how to write a custom one), craft-floor (the quality floor and the defaults to refuse), typography (type roles, scale, measure and pairing), layout (space, rhythm, alignment and composition), color (palettes, contrast and color roles), app-ui (product interfaces people operate: dashboards, tools, settings), polish (the final pass before handing work over), critique (reviewing a design against UX heuristics), distill (removing complexity), quieter (calming loud or busy designs), bolder (strengthening timid designs), delight (moments of personality), clarify (copy, labels and messages), onboarding (first-run flows and empty states), harden (errors, edge cases and long content), motion (purposeful animation), responsive (adapting across screen sizes), ios (Apple platform conventions), android (Material and Android conventions).

  • topicstring

    A topic to read in depth. Leave out for the workflow and rules

    shaderscraft-floortypographylayoutcolorapp-uipolishcritiquedistillquieterbolderdelightclarifyonboardinghardenmotionresponsiveiosandroid

propose_direction

Adds a direction to the open project's Pick a direction panel, where the person compares it with others on a tiny sample and the work each was drawn from, and picks the look the project starts from. Picking it sets the project's color, type, corner and control size tokens; you do not set them yourself. Propose each direction as soon as it is decided.

  • namestringRequired

    One or two words that say its mood, such as Trailhead

  • schemestringRequired

    dark for a product whose screens are dark

    lightdark

  • colorsobjectRequired

    The direction's four colors

    • backgroundstringRequired

      The page, as a hex such as #1F6B4F

    • surfacestringRequired

      Cards and raised surfaces on the page, as a hex such as #1F6B4F

    • textstringRequired

      Text, reading at 4.5:1 or better on background and surface, as a hex such as #1F6B4F

    • accentstringRequired

      The one primary action, as a hex such as #1F6B4F

  • fontsobjectRequired

    The direction's typefaces

    • displaystringRequired

      Google Fonts family for headings, such as Fraunces

    • bodystringRequired

      Google Fonts family for interface and body text; the same as display for one family throughout

  • radiusnumber0 to 32Required

    Corner radius of buttons and cards, in pixels

  • densitystringRequired

    How tightly controls sit: tight, comfortable or airy

    tightcomfortableairy

  • sampleobjectRequired

    A tiny card from the product, which the panel draws in this direction

    • titlestringRequired

      A heading in the product's words, such as Twelve in a row (28 characters at most)

    • labelstringRequired

      A quiet label, such as Tuesday

    • metastringRequired

      A short figure in the accent, such as Streak 12

    • linestringRequired

      The card's main line, such as Easy run, 5 km

    • actionstringRequired

      A button label, such as Start run

  • referenceobject

    The real work this direction is drawn from, which the panel names under it

    • titlestringRequired

      What the work is, such as Office Commun brand identity

    • urlstringRequired

      The address of the page you took it from

Creating

Add canvases and screens, and write layers as HTML with inline CSS.

create_canvas

Adds a canvas to the project the user has open, for a new flow or area of the design. Pass its id as canvas to create_screen, write_html or insert_image.

  • namestringRequired

    The canvas's name

create_screen

Adds a blank screen (a top-level frame that clips its content) to the open canvas. When content runs past the device height, remove the height with update_nodes (height: null) so the screen hugs it. Presets: Phone: iPhone 17 Pro Max 440×956, iPhone 17 Pro 402×874, iPhone Air 420×912, iPhone 16e 390×844, iPhone SE 375×667, Android Compact 412×917, Android Medium 700×840; Tablet: iPad mini 744×1133, iPad Air 11″ 820×1180, iPad Pro 11″ 834×1210, iPad Pro 13″ 1032×1376, Android Tablet 800×1280; Laptop: MacBook Air 1280×832, MacBook Pro 14″ 1512×982, MacBook Pro 16″ 1728×1117, Laptop 1366×768; Desktop: Desktop 1440×1024, Full HD 1920×1080, iMac 24″ 2240×1260, Studio Display 2560×1440.

  • presetstring

    A preset name, such as iPhone 17 Pro or Desktop

  • widthnumber

    Width in pixels, in place of the preset's. Defaults to 1440

  • heightnumber

    Height in pixels, in place of the preset's. Defaults to 1024

  • namestring

    The screen's name. Defaults to the preset's name, else Screen

  • canvasstring

    A canvas id. Defaults to the open canvas

  • xnumber

    Canvas position. By default the screen goes to the right of existing ones

  • ynumber

    Canvas position, with x

  • refstring

    A name for the screen, so later calls in the same response can target it as ref:<name> before its id comes back

write_html

Adds HTML with inline styles to the design. Put it inside a node (parent), in place of one (replace), or directly on the canvas as a new top-level node. Use flex layout and data-name attributes; data-instance="Button/Primary" places a component instance, and an empty <svg data-icon="bell" data-icon-style="line"> draws that Immaculate Icon (24px unless sized). data-type="body-small" gives an element that type style's size, leading, tracking and weight tokens. data-ref="cards" names an element, so later calls in the same response can target it as ref:cards before its id comes back. A block holding only text and inline tags (span, a, strong) becomes one text layer; in a flex or grid container each child is its own layer. Inside a component instance only its slots take new layers: frames marked [slot] in get_tree (data-slot in code), such as the list in a sidebar; data-slot on a frame inside a data-component main makes it one. A data-component main written anywhere but the Design System canvas moves there, onto the board for its category, and an instance takes its place; edit the main to change every copy. On a main, data-on-hover, data-on-press, data-on-click, data-on-drag and data-on-draw name the state each trigger leads to, another main drawn with the same layer names such as Button/Primary/Hover, which may come in the same write; data-on-hover-timing="var(--duration-fast) var(--ease-out)" sets its timing. Drag scrubs the change with the pointer, along what moves between the two states (a slider's knob); draw changes state once the person has written on the main and paused (a signature). data-shader="mesh-gradient" paints a live shader under a frame's content, with parameters as data-shader-* attributes (data-shader-colors="var(--brand-300), #7c3aed", data-shader-speed="0.3"); data-shader="custom" takes a GLSL fragment shader in a <script type="x-shader/x-fragment"> inside the element; get_design_guide topic shaders lists every shader. Returns the new nodes' outline, with a note on any icon or component name it could not find, and where each new main went.

  • parentnode

    Append inside this node. Inside an instance, only a slot takes new layers

  • replacenode

    Replace this node, keeping its place. Elements that keep the data-id get_code wrote stay those nodes, so components keep their instances and overrides

  • positioninteger

    Insert at this child position inside parent instead of at the end (0 is first)

  • canvasstring

    A canvas id for new top-level nodes, and where ref: names are looked up. Defaults to the open canvas

  • xnumber

    Canvas x for new top-level nodes. By default they go to the right of existing screens, or where the node they replace was

  • ynumber

    Canvas y for new top-level nodes, with x

  • htmlstringRequired

    The HTML to add, with inline styles

Changing

Edit, move, copy and remove layers, lay them out and name them.

update_nodes

Changes several nodes in one call. style merges CSS properties named as in CSS, such as flex-direction (numbers are pixels; null removes a property, and height: null lets a frame hug its content). text replaces a text node's content and drops its inline formatting; to keep bold words or links, rewrite it with write_html and replace. icon swaps the Immaculate Icon an svg node draws, also inside an instance. slot marks a frame inside a component main as a slot, where every instance can add, remove and reorder its own layers. interactions links a component main to its other states on hover, press, click, drag (the pointer scrubs the change, for sliders and slide-to-confirm) or draw (written on, for signatures). shader paints a WebGL shader under a frame's content, as data-shader in code: { kind: 'mesh-gradient', colors: ['#...'], distortion: 0.8, speed: 0 }; null removes it. get_design_guide topic shaders lists every kind and its parameters.

  • updatesobject[]Required

    One change per node

    • nodenodeRequired

      The node to change

    • styleobject

      CSS properties named as in CSS. Numbers are pixels and null removes a property

    • textstring

      New content for a text node, which drops its inline formatting

    • namestring

      The layer's name

    • attrsobject

      HTML attributes such as href or aria-label. null removes one

    • hiddenboolean

      Hides the layer, or shows it again

    • lockedboolean

      Locks the layer on the canvas, or unlocks it

    • slotboolean

      Makes a frame inside a component main a slot, or stops it being one

    • notestring

      What the layer is for, in the designer's words (data-note in code). An empty note removes it

    • iconstring

      An Immaculate Icon name for an svg node to draw instead, keeping its size and color

    • iconStylestring

      line, bulk or solid. Defaults to the style the svg draws now

      linebulksolid

    • shaderobject | null

      A WebGL shader drawn under the frame's content, as data-shader in code: { kind: 'mesh-gradient', colors: ['var(--brand-300)', '#7c3aed'], distortion: 0.8, speed: 0 }. Parameters merge; one set to null goes back to its default; kind switches kinds, keeping the parameters the new kind also takes; glsl holds a custom shader's source; null removes the shader. get_design_guide topic shaders lists every kind and its parameters.

    • interactionsobject | null

      On a component main: the state each trigger leads to, another main by name or id, with a duration and easing that default to var(--duration-base) and var(--ease-out). A trigger set to null is cleared, and null clears them all

      • hoverobject | null

        The state hover leads to, or null to clear it

        • tostringRequired

          The other state: a component name such as Button/Primary/Hover, or its id

        • durationstring

          A time token such as var(--duration-fast), or a time such as 300ms

        • easingstring

          An easing token such as var(--ease-spring), or any CSS easing

      • pressobject | null

        The state press leads to, or null to clear it

        • tostringRequired

          The other state: a component name such as Button/Primary/Hover, or its id

        • durationstring

          A time token such as var(--duration-fast), or a time such as 300ms

        • easingstring

          An easing token such as var(--ease-spring), or any CSS easing

      • clickobject | null

        The state click leads to, or null to clear it

        • tostringRequired

          The other state: a component name such as Button/Primary/Hover, or its id

        • durationstring

          A time token such as var(--duration-fast), or a time such as 300ms

        • easingstring

          An easing token such as var(--ease-spring), or any CSS easing

      • dragobject | null

        The state a drag scrubs to with the pointer, or null to clear it

        • tostringRequired

          The other state: a component name such as Button/Primary/Hover, or its id

        • durationstring

          A time token such as var(--duration-fast), or a time such as 300ms

        • easingstring

          An easing token such as var(--ease-spring), or any CSS easing

      • drawobject | null

        The state drawing on the main leads to once the person pauses, or null to clear it

        • tostringRequired

          The other state: a component name such as Button/Primary/Hover, or its id

        • durationstring

          A time token such as var(--duration-fast), or a time such as 300ms

        • easingstring

          An easing token such as var(--ease-spring), or any CSS easing

move_nodes

Moves nodes into another parent or to another position among their siblings (0 is the back, the first child in a flex layout). Layers inside a component instance stay where their component puts them, except that a slot's layers can change places. Inside an instance, only a slot takes layers from elsewhere.

  • nodesnode[]Required

    The nodes to move

  • parentnode

    New parent. Defaults to the current one

  • positioninteger

    Child position in the parent. Defaults to the end

duplicate_nodes

Copies nodes with everything inside them. Copies of top-level nodes go to the right of the canvas; others go right after their original, so duplicating a list item adds another one. A copy of a component main is an instance of it, and a copy of an instance stays one. Inside an instance only a slot takes copies; a copy of a layer there that mirrors a component, such as a list item, is an instance of that component. Returns the id of every copied node next to its original's, so you can change the copy's parts right away.

  • nodesnode[]Required

    The nodes to copy

delete_nodes

Removes nodes and everything inside them. Layers inside a component instance are hidden instead.

  • nodesnode[]Required

    The nodes to remove

tidy_up

Lays out a frame's layers as the auto layout they already look like, each kept where it is: layers placed freely in one row or column become flex with the gap they share, and layers placed absolutely inside auto layout go back in its flow, in screen order. Returns the CSS each frame took, with a note on any problem in it. Refuses frames whose layers don't form one row or column, and frames inside an instance.

  • nodesnode[]Required

    The frames to tidy

name_layers

Names the layers whose names say nothing, such as "Frame" or an element's default, from what they hold and the part they play ("Sign up button", "Top bar", "Project tabs"), as the canvas's Name layers does. Covers each node and everything inside it. Instance layers and components keep their names, and write_html already names what it writes.

  • nodesnode[]Required

    The layers to name, with everything inside them

Components and tokens

Place the project's components, and read, set and remove its tokens.

list_components

The project's components. Their mains live on the Design System canvas, which projects made before kept elsewhere. Without a query it sums them up by family, such as Button, Select and Tabs; with one it lists the matches with id, size, what is inside and their slots (frames where each instance holds its own layers, such as a sidebar's list of items), or only ids and names when more than 100 match. Names are paths such as Button/Primary/Small. Place them with insert_component, or with data-instance in write_html, instead of drawing the same thing again.

  • querystring

    Only components whose name contains this, such as Button/, Select/, Switch or Tabs. A trailing slash skips state names like Selected

insert_component

Places an instance of a component. Instances follow every later change to the component, except what you customize here or change on the instance afterwards. Put it inside a node (parent) or on a canvas.

  • componentstringRequired

    A component id, or its full name such as Button/Primary

  • parentnode

    Append inside this node. Inside another instance, only a slot takes it

  • positioninteger

    Child position inside parent instead of the end (0 is first)

  • canvasstring

    A canvas id for a top-level instance. Defaults to the open canvas

  • xnumber

    Canvas x for a top-level instance, or left inside a parent without auto layout

  • ynumber

    Canvas y for a top-level instance, or top inside a parent without auto layout

  • textstring

    Replaces the text of the component's first text layer, such as a button label

  • styleobject

    CSS for the instance root, named as in CSS, such as width or align-self

get_tokens

The project's design tokens with their final values: color roles, palette ramps, type styles and weights, spacing, radii, shadows, motion and fonts. Style with var(--name) instead of literal values, so the design follows the system and changing a token restyles every canvas. Roles with a light and a dark value use light-dark(): a frame with color-scheme: dark takes the dark ones.

  • kindstring

    Only tokens of this kind

    colordimensionshadowfontother

set_tokens

Creates or changes tokens by name in the project you work in. Every style that uses a changed token, on every canvas, follows at once. Values may reference other tokens, as var(--blue-500); point a role such as accent at another palette step to restyle a project.

  • tokensobject[]Required

    The tokens to create or change

    • namestringRequired

      Lowercase letters, digits and dashes, such as brand-500 or radius-md

    • valuestringRequired

      One CSS value: #0A7CFF, 12px, a box-shadow, a font stack, var(--another-token), or light-dark(light, dark) for a color with a dark value

    • kindstring

      Required for new tokens. dimension covers sizes, radii, spacing and type; other covers weights, durations and easings

      colordimensionshadowfontother

delete_tokens

Removes tokens from the project you work in. Styles that still use a deleted token lose that value, so repoint them first.

  • namesstring[]Required

    Names of the tokens to remove, such as brand-500

Fonts, icons and images

Find typefaces, find and place Immaculate Icons, and place images from files or the web.

search_fonts

Finds typefaces for font-family: every Google Fonts family, Immaculate's own Immaculate Gothic, and the fonts installed on this machine, with their weights. Immaculate loads them on the canvas and in screenshots by name, so write the family as listed. Without a query, lists the most popular.

  • querystring

    Part of a family name, such as serif or mono

  • categorystring

    Only families of this kind

    sans-serifserifdisplayhandwritingmonospace

  • limitinteger1 to 100

    Defaults to 20

search_icons

Finds Immaculate Icons, the free set built into Immaculate: 266 icons on a 24 pixel grid, each in line, bulk and solid styles. Matches names and synonyms, best first. Omit query and category to list every icon by category.

  • querystring

    One idea to match, such as "arrow right" or "settings". Search again for each icon, or omit query to list every name

  • categorystring

    Only icons in this category

    InterfaceArrowsCommunicationPeopleFilesMediaDevicesCommerceChartsTimeLocationSecurityStatusDesignNature

  • limitinteger1 to 500

    Most results to list. Defaults to 40

get_icon

SVG markup for an Immaculate Icon, such as for code outside Immaculate. In write_html, <svg data-icon="bell"> draws the icon without it. Keep the markup as is: its data-icon attributes let the design panel swap the icon. It draws in currentColor, so it takes the surrounding text color unless you pass color.

  • namestringRequired

    An icon name from search_icons, such as arrow-right

  • stylestring

    line (default) is 1.5 strokes; bulk adds a soft 40% fill under them; solid is filled with the details cut out

    linebulksolid

  • sizenumberUp to 1024

    Width and height in pixels. Defaults to 24

  • colorstring

    Any CSS color or token, such as var(--accent)

insert_icon

Places an Immaculate Icon as an SVG layer named after it: inside a node, where it follows a flex layout or else sits at x and y, or on the canvas. Without color it uses the project's fg token when there is one, else the surrounding text color.

  • namestringRequired

    An icon name from search_icons, such as arrow-right

  • stylestring

    line (default) is 1.5 strokes; bulk adds a soft 40% fill under them; solid is filled with the details cut out

    linebulksolid

  • sizenumberUp to 1024

    Width and height in pixels. Defaults to 24

  • colorstring

    Any CSS color or token, such as var(--accent)

  • parentnode

    Place inside this node. Defaults to the canvas. Inside an instance, only a slot takes it

  • canvasstring

    A canvas id, when not placing inside a node

  • positioninteger

    Child position inside parent (0 is first). Defaults to the end

  • xnumber

    Left in pixels, inside a parent without flex layout or on the canvas

  • ynumber

    Top in pixels

insert_image

Places an image from a local file (such as one you generated) or a URL. The file is copied into the project's assets. Without a size it keeps its natural size, scaled down to fit its parent's width.

  • filestring

    Absolute path of a PNG, JPEG, GIF, WebP, AVIF or SVG file

  • urlstring

    An image's address, in place of file

  • parentnode

    Place inside this node. Defaults to the canvas. Inside an instance, only a slot takes it

  • canvasstring

    A canvas id, when not placing inside a node

  • namestring

    The layer's name. Defaults to the file's name

  • widthnumber

    Width in pixels. Defaults to the natural width, fit to the parent

  • heightnumber

    Height in pixels. Defaults to the height that keeps its proportions

  • styleobject

    Extra CSS such as object-fit or border-radius

Web pages

Look at a site for reference, or bring it onto the canvas as editable layers.

get_webpage

Opens a web page in Immaculate's own browser and returns its first screen as an image, with what the page paints: its background, text color, accent (from its buttons and links) and the fonts of its headings and body. Use it to see a reference you found while researching, such as a site or a showcase entry, before drawing on it. To bring a page onto the canvas as layers, use import_webpage.

  • urlstringRequired

    The page's address, such as https://recent.design/i/an-entry

import_webpage

Imports a web page, or one element of it, onto the canvas as editable layers: a new top-level frame laid out at a device width, with the page's computed styles as inline CSS, flex and grid kept, text as text in its fonts, images and CSS backgrounds as assets, inline SVG kept, ::before and ::after as layers. Use it to start from something real, such as the user's live site or a page they name (localhost works for their work in progress), then edit the layers like any other. It is a snapshot: no scripts come along. get_webpage only looks; this one builds. Returns the frame's id and size, and what was left out.

  • urlstringRequired

    The page's address, such as https://stride.run or localhost:3000/pricing

  • selectorstring

    A CSS selector for one element to import instead of the whole page, such as #pricing or main > section:nth-of-type(2)

  • widthinteger320 to 3840

    The device width the page is laid out at: 1440 for a desktop (default), 1280 for a laptop, 768 for a tablet, 390 for a phone

  • canvasstring

    A canvas id. Defaults to the open canvas

  • xnumber

    Canvas position. By default the frame goes to the right of existing screens

  • ynumber

    Canvas position, with x

Export

Save layers, or a canvas's slides, as files.

export_nodes

Saves nodes as files, drawn exactly as Immaculate draws them (fonts, tokens, images and shaders): PNG, JPEG or WEBP at a scale (a 320 × 251 frame at 2x is 640 × 502 pixels), PDF with real text and one page per node in the order given, each page the node's size, or SVG for a vector or icon. slides exports the canvas's slides, its visible top-level frames in presentation order, as one PDF. Files go to Immaculate's exports folder, or to folder when it is one the person picked to export into from the app; existing files are never overwritten. Returns each file's path and size.

  • nodesnode[]Up to 100

    The nodes to export. Leave out with slides

  • slidesboolean

    Export the canvas's slides as one PDF, in presentation order

  • canvasstring

    The canvas whose slides to export. Defaults to the one in view

  • formatstring

    png (default), jpeg, webp, pdf or svg

    pngjpegwebppdfsvg

  • scalenumber0.5 to 4

    Pixel density for png, jpeg and webp. Defaults to 1

  • folderstring

    Where the files go: a folder inside the exports folder when relative, or a folder the person picked to export into