Pixelwright GitHub

Pixelwright changelog

Every release, newest first. The npm package pixelwright and the Figma plugin share one version.

0.9.0 — 2026-11-20

Pixelwright 0.9.0 edits Figma again: design_apply, nodes_delete and version_save are back, and tokens_apply and tokens_bind come in this version rather than 0.10.0, so it has 35 tools. Every write is refused while the plugin's Allow edits switch is off; dryRun checks a write without it and refuses what a real run would refuse, and version saves a named version in the file's history before writing. Update the plugin with the server (npx -y pixelwright@latest setup): a 0.8 plugin cannot connect to 0.9.0.

Added

  • design_apply writes Pixelwright XML, the format design_read returns, into Figma: it changes layers by id and creates frames, sections, texts, text on a path, shapes, images and SVG icons from files, components, variant sets, instances, slots and pages. It writes auto layout and grids, sizes and placement, moves and copies, fills, gradients, borders, radii, shadows, blurs, blend modes and masks, colour and number tokens, styles, text with its fonts and runs, links, variable modes, Dev Mode notes and component properties. One call is one undo step, an error names its line and column, and the call never deletes a layer it did not make. A var(--name) that variables of several collections share takes the collection whose mode the layer or a parent sets, and is refused when none does; a shadow spread Figma keeps but does not draw gets a note.
  • nodes_delete deletes up to 500 layers by id, each on its own: a layer Figma will not delete stays, with the reason.
  • version_save saves a named version in the file's history, when the user asks for one.
  • tokens_apply writes collections, modes, variables, aliases and paint, text and effect styles in one undo step, in the shape tokens_read returns: tokens_read's own output applied back changes nothing. A library variable is aliased by its key, a library's collection or style is never copied into the file, and nothing is deleted. An alias or a style colour naming a token several collections hold is refused.
  • tokens_bind binds the raw values under a layer, a page or the file to the variables and styles that hold them exactly: colours, gaps, padding, radii, border widths, opacity, text styles and effect styles. A value several tokens hold is listed with its candidates (choose picks one and snaps a near value to a token), a value no token holds is listed for tokens_apply, and remap moves every use of one token to another, inside instances too with instances: "override".
  • design_read writes each Dev Mode note with the properties pinned to it, and inspect lists them; design_apply writes, changes and removes the pins.
  • Variable fonts: design_read writes a text's axes as font-variation-settings, and design_apply writes them; an axis the font lacks or a value out of its range is refused.
  • execute takes version again: a named version saved before the code runs.
  • The guide's write and layout topics are back, and a recipe checks a web build against the design without a browser.

Changed

  • tokens_apply takes one tokens input, the shape tokens_read returns with format: "json", in place of 0.7.0's collections and styles.
  • baseline_save asks for a baseline only when the user tracks design changes, not after every design_read.

Fixed

  • design_read writes a shadow's spread only where Figma draws it (rectangles, ellipses, and frames, components and instances that clip their content and have a fill), and gives each collection's value of a token name several collections share; tokens_read notes that :root keeps only the last of them.
  • A call made while the plugin is reconnecting (right after the server starts, or when another MCP client's server closes) waits for it, up to 20 seconds, instead of failing at once.

0.8.2 — 2026-11-12

Added

  • nodes_find takes fill, a Figma paint type (IMAGE, SOLID, a gradient, VIDEO, PATTERN): the layers with a visible fill of that type, e.g. every image layer.
  • nodes_find takes a list in within: up to 50 layers or pages searched in one call, each layer listed once.

Changed

  • With Allow edits off, execute's plugin code is refused with a text that says how to read without it: execute's script or the read tools.
  • assets_export says what from writes: an image behind a layer's content as it was placed, an image layer rendered at its export settings (else 2x); scale and format apply to nodes only.
  • inspect says that an image's url(assets/<hash>.png) is a name, not a file it writes.

0.8.1 — 2026-11-12

The first published version of 0.8.0's line: the same server and plugin as 0.8.0, whose release never reached npm.

Fixed

  • The release publishes the package to npm: 0.8.0's release stopped before npm, so npx -y pixelwright@latest stayed on 0.7.0.

0.8.0 — 2026-11-12

Pixelwright 0.8.0 is a rewrite of the server and the plugin, and this version reads Figma: the tools that wrote to the file and the design checks are out of it, and editing comes back in 0.9.0 and 0.10.0 (see Removed). It has 30 tools: 29 keep 0.7.0's names, types_read is new, and design_read writes 0.7.0's XML, so what an agent knows of 0.7.0's reads still holds apart from the changes below. The plugin is new too: put it in place with the server (npx -y pixelwright@latest setup), since a 0.7.0 plugin cannot connect to 0.8.0.

Added

  • design_read writes a text's stroke as -webkit-text-stroke (an outside stroke twice as wide with paint-order: stroke fill; an inside one with a note, since CSS has none), and a layer's fill blend modes as background-blend-mode, one per background, top first.
  • design_read says more of what Figma shows: a drop shadow Figma draws behind a see-through layer is filter: drop-shadow() (CSS cuts a box-shadow out under the box), a link that opens in a new tab has target="_blank", a locked layer has $locked, and corner smoothing is a $css note with Figma's value.
  • design_read takes autoLineHeight: "px": Figma's Auto line heights are written as the px Figma renders them at, wherever a text that hugs its lines shows that for its font and size. Elsewhere, and by default, they stay normal, and the line-height hint names only the texts still written normal.
  • assets_export takes names, a file name per layer id ({ "12:34": "hero-mountains" }). Layers without one keep the name made from the layer's name.
  • The guide and assets_export say that WEBP keeps transparency exactly, at any quality.
  • inspect gives the blend mode of a layer and of each of its fills, with CSS's mix-blend-mode name, every fill's type (a video's too), and the variables bound to a layer's padding, gap, radius and size under the token names design_read writes. It takes up to 100 layers a call; left counts the selected layers past them.
  • nodes_find without within names the page it searched in page, and when it finds nothing there, hint says how to search elsewhere.
  • nodes_diff and variants_read say in cut when a read was cut short.
  • tokens_usage returns at most 500 layers (more says there are others) and takes budgetMs: the scan stops there with what it found and a note.
  • components_read names the project file a component's code link points at in path, for GitHub, GitLab and Bitbucket file links and vscode://file links.
  • status says which connected file's tab is in front (visible): a file behind other tabs answers slowly.
  • execute takes one of three inputs: code, Plugin API code run in the plugin; codePath, the path of a file of such code, read at every call; and script, code run on the server where pw.nodesFind(...) and the other reads call the read tools (50 calls a run, 4 at once), with utils to filter and join their answers. A script never writes and throws on a key an answer lacks. The guide's script topic has its limits.
  • types_read gives the whole answer type of each named read as TypeScript, every field with its comment, so a script reads only keys that exist.
  • nodes_find takes a list of phrases in text (any matches) and textRegex, fontSize ranges (lt, lte, gt, gte), visible (false finds hidden layers), componentId, properties (every property's value on each instance, variant values included) and fields (keep only the fields you name). It returns a text's characters, its ancestors in path and, across the file, its page; hidden: true marks a layer a viewer does not see.
  • nodes_find gives each instance its component (and set for a variant) and the properties it changed from the component's defaults.
  • inspect reads a whole subtree in one call: within with depth, and fields to keep only some groups (box, parent, path, fills, strokes, effects, layout, bound, text, component, interactions); more and leftIds say what was left. It also gives parentLayout with layout, a mixed text's runs as segments, path with the ancestors' ids and the page, a component's properties with their defaults, nested instance ids, and names each bound variable by its Figma name too.
  • tokens_read takes query (a text or a list of them) to keep only the variables and styles whose name matches; each variable carries its Figma id and, for an alias, aliasOf with the tokens it passes through.
  • tokens_usage takes raw: true: the colours bound to no style and no variable, each with its count and layers.
  • outline takes absolute: true for boxes in page coordinates; file_map gives each layer's childCount.
  • components_read takes instances: true (each instance's id, name and page, 100 at most, for the first 25 components listed) and references: true (the layers bound to each component property).
  • The read tools say what an absent field means (no hidden is visible; no padding is 0) and that an answer is complete unless more is true or a note says the scan stopped.

Changed

  • Update the plugin with the server. The plugin protocol is now 6: a 0.7.0 plugin cannot connect to a 0.8.0 server, and status names a plugin it turned away, with its version. Run npx -y pixelwright@latest setup again and run the plugin.
  • Servers of the two versions meet over peer protocol 4: a 0.7.0 server still running hands the bridge to 0.8.0 and then asks to be restarted in its MCP client, and a 0.7.0 server started while 0.8.0 holds the bridge is turned away. Restart Pixelwright in every MCP client left open (/mcp in Claude Code).
  • Every tool refuses an argument it does not take, with an error naming it, instead of dropping it without a word: an agent learns the right field from the error.
  • A hidden layer inside a read is written as a stub, its tag with id, name and display="none" (and $visibleProp when a component property shows it) and no children, where 0.7.0 left it out. baseline_diff lists it as now: hidden or was: hidden, and styles_compare notes a hidden layer instead of comparing it. A hidden root is still refused.
  • design_read no longer asks Figma for its own CSS of a layer, which could hang for minutes: a fill or stroke Pixelwright cannot write as CSS (a diamond gradient, a pattern) is named in $css by a fixed note.
  • Blurs now match how Figma renders them. design_read and tokens_read write a layer or background blur of radius 20 as blur(8.6px), about 0.86 of the value 0.7.0 wrote. Figma's Dev Mode still writes half the radius (blur(10px)), so its CSS differs from Pixelwright's.
  • design_read's maxChars cuts in steps until the read fits: the deepest branches first ($truncated), then the longest lists ($children="N" where not all children were read), then the longest texts ($truncated). 0.7.0 only emptied deeper branches.
  • image_compare counts differing pixels another way, so re-take once any different you kept from 0.7.0. different, the share of differing pixels, now comes from pixelmatch 8: a perceptual colour threshold, with antialiased pixels left out, in place of 0.7.0's "any channel off by more than 16". The share drops on antialiased edges (an icon antialiased another way: 0 of 9,216 pixels, where 0.7.0 counted 20), and the diff image marks antialiased pixels yellow.
  • fonts_check asks Fontsource's catalogue first whether Google Fonts serves a family, and Google's own list only when Fontsource does not answer.
  • execute prints what its code logs as JavaScript writes it: undefined, NaN and Infinity print as themselves, not as null.
  • execute is for reading: its description and the server's instructions tell the agent to try the read tools first, and, when the user asks to change the file through execute, to warn that editing is not supported or stable in this version and go on only on the user's say-so. Allow edits still gates every write.
  • styles_compare compares a layer in its parent only when another pair's layer holds it, and otherwise as a read of its own (its size, not its place); in a flex that does not wrap only the main axis's gap is compared; layers with differences come first.
  • tokens_read writes an effect style's blurs as tokens of their own (--Name-filter, --Name-backdrop-filter), draws a gradient paint style from its paints rather than taking Figma's CSS, and notes a spring easing instead of drawing it as linear(). Past maxChars every format, not only JSON, gives the summary with the most whole tokens that fit, and maxChars goes down to 500.
  • guide has five topics, workflow, xml, tokens, assets and script, written for this version's tools.

Fixed

  • One underlined or struck-through word no longer decorates the whole text in design_read: a decoration stays on the text only when every run has it, since CSS cannot take a parent's decoration off a span; otherwise each span carries its own.
  • A gradient paint style has one value in design_read and tokens_read. A layer whose box draws the gradient at another angle keeps the token, with a hint giving the background as Figma draws it there.
  • A video fill reads as a video: design_read notes it in $css and lists its asset with no file, inspect names it, and assets_export answers its layer with kind: "video" and asks for the file from the designer, since the Plugin API cannot export a video.
  • assets_export writes one file for a layer named more than once in nodes.
  • assets_export with original takes each layer's topmost visible image fill, not a hidden one under it, and notes the other image fills.
  • file_map no longer fails when Figma cannot load a page. Every page is still listed by id and name, the pages that loaded have their layers, and pagesNotRead names the others with Figma's reason.
  • file_map says when a section's layers were cut short, with its total and more, where 0.7.0 stopped at 1,499 without a word.
  • Stroke weights keep their fractions: a 2.5 border reads as 2.5px, not 3px.
  • Relative paths start in the session's project folder (the MCP client's root, else CLAUDE_PROJECT_DIR), not in the folder the server was started from: design_read's assetsDir, assets_export's dir, screenshot's save, image_compare's files and execute's codePath.
  • tokens_read with format: "dtcg" writes a colour composed with an opacity variable as valid DTCG: one colour with its alpha, or, when its colour cannot be resolved, a reference to that colour with a note, where 0.7.0 passed {color, opacity} through.
  • tokens_usage finds a style or variable that only one run of a mixed text uses.
  • components_read with instances leaves out instances on no page (inside a removed layer).

Removed

  • The plugin window no longer lists the AI's last actions. Its notes stay: the hint after a refused edit, and the reminder that code execute started may run on after Allow edits goes off.
  • The tools that write, until the editing versions: design_apply, nodes_delete and version_save come back in 0.9.0; tokens_apply, tokens_bind, texts_replace, effects_apply, instances_reattach and icons_insert in 0.10.0.
  • The design checks contrast_check, design_lint, design_audit, a11y_read and states_find come back with the editing versions.
  • screenshot's and image_compare's modes, which rendered a layer in other variable modes, come back in 0.10.0.
  • execute's version (a named version saved before the code runs) and its pw.paint and pw.variable helpers come back with editing.
  • Code Connect is gone: code_connect_read, design_read's code input with $code and codeComponents, and components_read's code field and mapped input.
  • Figma Motion is no longer read: design_read writes no $motion and no motion keyframes.
  • The guide's write and layout topics come back with editing; its code-connect and email topics are gone.

0.7.0 — 2026-10-22

Added

  • design_read reads Figma's text on a path (a label along an arc) as <TextPath>: its text, spans and text CSS as a Text's, d (the path in its own box) and start (the segment and the place along it where the text begins).
  • design_apply edits text on a path: <TextPath id="…">New words</TextPath> changes its characters and keeps its look, its text CSS is written as on a Text, and start moves where the text begins. A changed d is refused, since Figma cannot change the path: delete the layer and make it again. So is a line height in font: a text on a path has none.
  • design_apply makes text on a path along d (any SVG path) or arc="<cx> <cy> <r> <from> <to>", an arc of a circle in the parent with its ends in degrees as CSS turns (0 at the top, clockwise).
  • text-align="center" or "right" on a text on a path, without start, puts its start in the middle of the path or at its end, where Figma anchors the alignment, so the whole text shows instead of one letter.
  • inspect gives every layer its center, and with around (a layer's id, such as a ring's, or a point) each layer's distance from it and its angle as CSS rotate() turns: 0 straight up, clockwise to 360.
  • nodes_find finds instances by variant ("State=Hover, Size=L"), and counts: true counts every instance found, past the limit, by component and variant: before deleting variants, which ones layers still use, without code. A plugin too old for these is refused with a hint to update it, instead of listing every variant's instances.
  • execute says in note when its code only reads (nothing in it sets a property, calls a method that writes or runs a helper of your own), and that the read tools need no code and work with Allow edits off.

Fixed

  • Text on a path, and a frame holding one, no longer read as an <Icon> with no text, and a <Text> written inside a <TextPath> is refused with a hint instead of becoming a new layer in it.

0.6.0 — 2026-10-22

Added

  • design_apply makes pages: a top-level <Page name="Screens"> creates a page, last in the file, with the layers inside it, and a layer named by its id inside it moves onto it. <Page id="…"> is a page the file has: name renames it, and new layers inside it go on it. Past the pages Figma's plan allows, the error names the limit.
  • swapProp="Icon" on an <Instance> in a new <Component> makes an instance swap property, its default that instance's component.
  • prop, visibleProp and swapProp work on an existing component, so it never has to be rebuilt: on its layers by their ids, or on new layers inside its <Component id="…">, each binds to the property of that name or adds it once, its default the layer's value now. The answer's properties lists what was added (a dry run's: what would be).
  • A shadow's colour can be a colour variable: design_apply binds var(--shadow) in box-shadow, inset shadows and text-shadow, design_read and tokens_read write a bound one so, and tokens_apply effect styles take it.
  • design_apply scales an existing Icon whose width or height changes, its lines and corners with it, as a new one is; the width decides when both are given.

Changed

  • A var() that names no token in design_apply says to create it with tokens_apply first: design_apply binds tokens and never makes them.
  • visibleProp defaults to whether the layer shows, so a layer the call hides gets a property that is off.

Fixed

  • A design_apply call that switches an instance's variant or component and also edits its layers by their old ids refuses those edits up front, in a dry run as in a real one, and says to switch first, read the instance again, then edit: Figma gives a switched instance's layers new ids, so before, a dry run that passed ended in a real run that wrote the switch and failed the edits.
  • A var() that names no token no longer freezes the plugin for minutes: design_apply and tokens_apply look for it on the file's other pages without asking Figma for any layer's CSS, which could hang there, so the answer, with its "Did you mean" hint, comes quickly and the calls after it are not held up. Where a layer's CSS is still read (the current page's gradient styles, design_read), a slow answer is given up on after 3 seconds.
  • tokens_apply takes a variable's type in any case: "color" is COLOR.
  • design_apply changes a layer deep inside a big screen in one call, nested as design_read writes it: the layers named and the ones on the way to them are read first, instead of "could not read its current state".
  • design_apply props= that sets a text property on an existing instance loads the fonts its text uses first, instead of failing on an unloaded font.
  • tokens_apply's error for a style naming an unknown variable keeps the near names it suggests.
  • guide write says how props sets an instance swap property: by a component's or set's name or key:<key>.

0.5.0 — 2026-10-20

Added

  • execute takes script in place of code: a file of code on the server's disk, read at every call, so a long script needs no pasting and an edited file runs as it is now.
  • design_lint takes a list of up to 30 layer ids in within, each read on its own in one call: a big board's frames. An id it cannot read is named, and the rest keep their token hints.
  • nodes_find and tokens_usage take within: "file" and look on every page.
  • components_read takes fields, so a big component library answers with only the fields asked for (names of the icon sets, for one).
  • tokens_bind with remap takes instances: "override", which rebinds the uses inside instances, nested ones too, as overrides on each instance: a dark copy on a plan with one mode a collection.
  • tokens_apply writes a text style's letter spacing and text case, from the also list tokens_read gives or after the font, and blur effect styles (filter: blur(), backdrop-filter: blur()) beside shadows. design_apply binds an effect style from filter and backdrop-filter with var(--Style), as from box-shadow.
  • design_read shows which component property a component's layer is bound to: $visibleProp, $prop and $swapProp, read only.
  • design_apply takes padding-top, padding-right, padding-bottom and padding-left, each over the layer's other sides, and its created names each layer it made beside its id.
  • status says why a file's key is empty (Figma gives it only to private plugins) and to ask for the file's link.

Changed

  • The plugin runs a write alone, after everything asked before it, and reads beside each other after the writes before them: a read never sees a write half done, and a timed-out write's retry finds what the first try made.
  • contrast_check rates every run of a text with its own colour, by its characters, sees the layers above the layer it checks (a part of a screen lies on the screen's fill), weighs a see-through layer over a text (a scrim), and rates a text on see-through glass against each part below it, giving the worst. design_lint's contrast rule does the same.
  • design_lint and tokens_bind check and bind what was put into an instance's slot: it is the instance's own content. The slot's default content stays the component's: tokens_bind leaves it alone and says so, as binding it would make the slot the instance's own and later changes to the component would no longer reach it.
  • design_lint lists a rule at the severity of its most severe finding, so a rule whose findings are all info no longer shows as a warning.
  • tokens_read with format: "json" past maxChars gives as many whole tokens as fit, and says how to read the rest.
  • design_apply takes a size together with both edges as CSS does (the size wins, the layer still stretches), places a layer by left and top where nothing lays it out (in a section, on the page), reads any known tag in any case (<span> too), and takes the elements a top-level <Root> wraps.
  • execute's description names what its code runs under (dynamic page access, skipInvisibleInstanceChildren false in the editor); an error about a synchronous call names the async one to make, and a script that turns skipInvisibleInstanceChildren on gets it set back after the call.

Fixed

  • A tokens_apply retried after the server stopped waiting no longer makes duplicate text styles; the timeout of a write says the plugin may still be writing and to read the file before retrying.
  • After thousands of calls in one plugin window, Figma's "invalid callback id" error on layers holding a grid says to close and reopen the Pixelwright plugin window, which clears it.
  • changes_since counts what texts_replace and instances_reattach changed as Pixelwright's.
  • design_lint never answers "No findings" for layers it could not read: with none read it fails with each reason, with some read its summary says how many were not checked.
  • contrast_check stops at the opaque fill right under a text instead of calling it "partly over" a deeper layer, never takes a text for a backdrop, leaves out (and counts) texts a clipping frame cuts out of view or an opaque layer covers, and says each reason a contrast is not one number instead of "over an image or gradient".
  • contrast_check says when its read stopped at its size budget (a screen of thousands of layers): the texts past it are missing and the backdrops of the layers above may be wrong, instead of answering as if the read were whole; design_lint notes the same for its contrast rule.
  • image_compare no longer reads antialiased edges as shifts of several pixels.
  • nodes_delete deletes a layer in an instance's slot, and design_apply moves layers within a slot.
  • execute code that does not parse is answered with the line and column, before anything runs, and says when the code may have arrived cut; an error while it runs names the line in the code and quotes it, with a short stack.
  • design_apply note= keeps a note's text as written: a prefix is a category only when the file has one of that name (none is made), and a bar splits only next to a note the layer has.
  • design_apply hiding a layer inside an instance with display="none" no longer answers "does not exist".
  • design_apply places a new component set's variants in its grid with grid-row and grid-column.
  • design_apply after a copyOf with edits inside lists the copy's layers it wrote in changed, and before= and after= inside a copy place by the copy's layers.
  • design_apply keeps a new text named Text when name="Text" is given.
  • design_apply's "too many layers at once" says to leave out the layers that stay as they are, or to split the call.

0.4.1 — 2026-10-18

Fixed

  • tokens_apply with dryRun no longer promises a mode the file's Figma plan refuses: once Figma has refused a mode in that file, a dry run refuses the same, and before that it warns when a collection would have more modes than any collection the file already has (a Starter plan allows one).
  • design_apply with dryRun lists the layers it would create (without ids) and the layers it would change, as the write does.
  • design_lint no longer flags layers a clipping frame cuts on purpose, such as a ticker's or a carousel's cards; only a text cut off that way is flagged.

0.4.0 — 2026-10-18

Added

  • effects_apply puts Figma's own noise, texture and glass on layers: a ready look (grain, film, risograph, frosted glass, clear glass) or the effect's own values; a new effect replaces the layer's one of its type, shadows and blurs stay, and remove takes them off.
  • design_lint checks a layer, a page or the whole file against the rules a design should keep before it is built: text contrast below WCAG AA, colours, texts and effects bound to no token or style, frames detached from components, stacks placed by hand, layers reaching past their parent's flow, grid cell or clip, touch targets under 24 or 44 px, interactive components without hover, focus or disabled states, raw values a token holds, spacing off the 4 px grid, instance overrides of a component's look, default names, hidden and empty leftovers. Each finding names its layer and how to fix it.
  • a11y_read says what a screen's markup needs for accessibility: heading levels (from text style names or sizes), controls with their roles and the labels a screen reader says (an aria-label suggested for an icon-only control, a field's label found beside it), pictures with an alt from their names, controls nested in controls, and layers placed by hand that read in another order than they show.
  • states_find lists the states interactive components are drawn in (hover, focus, pressed, disabled; error for a field, selected for a toggle or tab) and the ones they lack, and the empty, loading, error or success frames a list's or a form's screens lack.
  • tokens_bind binds raw colours, gaps, padding, radii, border widths, opacity, texts and shadows to the variables and styles that hold them exactly, in each layer's mode and within the variables' scopes. A value several tokens hold is listed with its candidates for a pick, a value none holds is listed for tokens_apply, choose snaps a near value to a token, and remap moves every use of one token to another.
  • instances_reattach puts frames detached from a component back as instances of it, where they stood and at their size, with their texts, images and hidden layers carried over; swap makes instances of one component instances of another (a set's variant with the same values), and reset takes instances' overrides off, their look only or all of them.
  • design_read writes gradients as CSS (linear-gradient, radial-gradient, conic-gradient, as Figma's own CSS gives them), and design_apply paints them back from the same CSS, a stop's token bound to its colour variable; tokens_apply writes gradient paint styles. mix-blend-mode and mask="alpha|vector|luminance|none" are read and written too.
  • texts_replace finds and replaces text under a layer, a page or the whole file: one pair or a list (copy edits, a translation), plain or a regular expression with groups, whole words when asked, all pairs at once against the text as it was. Each match is replaced where it stands, so its run keeps its font, colour and link, and a text an instance shows from a component property changes through the property.
  • design_read writes a variable mode set on a layer as data-<collection>="<mode>" (data-color-modes="dark"), the selector tokens_read's CSS uses, so a dark section reads as dark and the build sets the same attribute; a frame read alone also carries the mode it takes from the page or frame above. design_apply sets a layer's mode the same way, and data-<collection>="" clears it.
  • guide layout tells when to lay a frame out as flex, as grid or by absolute placement, with the grid's tracks, spans and cells, pinned and centred layers, what is not supported, and examples checked in Figma.
  • icons_insert finds icons in Iconify's open sets (Lucide, Material Symbols, Tabler, Phosphor and more; no key) and inserts one as an Icon layer at a size, into a frame, in a colour or bound to a colour token; a search lists icons with each set's licence and writes nothing.
  • execute gives the code pw, which stays from one call to the next while the plugin window is open: pw.state for your data and your own functions, and helpers for a layer by id, the fonts its texts use loaded, a CSS colour as a paint and a variable by its CSS name. version saves a named version first, and timeout waits up to five minutes for a long task.
  • image_compare compares a layer against another layer, rendered the same way, with no PNG on disk: a variant against its default, a rebuilt frame against the original.
  • styles_compare checks a build's computed styles against the design, layer by layer: give each layer with what getComputedStyle returns for the element that draws it, and it lists every property that differs with both values and the token or text style behind it, and the properties the build's styles left out. Shorthands, tokens and text styles are spread out the way the browser computes them; sizes and places may be off by a pixel.
  • tokens_apply sets a variable's scopes, the fields Figma's pickers offer it for (["FONT_WEIGHT"], [] to hide it), and its codeSyntax on the web, Android and iOS; scopes a type cannot take are refused before anything is written. tokens_read's JSON lists both, so tokens copied into another file keep them.
  • design_read with repeats: true reads a list of alike items (features, cards, rows) once: the first stands for all, marked $repeat="3", and repeats gives each item's own texts, files and variants as rows, so a long list costs a fraction of the read. With nearby: 400 it also lists the designer's notes on the canvas around the screen (texts, stickies and small frames of text beside it or over it), nearest first.
  • library_search finds components in your team's libraries from any file: save each library once from its own file, then search by words in any order (a typo still finds) and insert what it finds with design_apply.

Changed

  • design_apply reads a rotate() and a gradient's angles in any CSS angle unit (deg, grad, rad, turn), and lengths and percentages as the CSS tokenizer reads them, any case and sign.
  • Pixelwright is open source under the MIT license, which was the license each version would have become two years after its release under FSL-1.1-MIT.
  • tokens_read's CSS gives the default mode of a collection with several modes a [data-<collection>="<mode>"] block too, so an element in the default mode inside another mode's element takes the default values back.

Fixed

  • design_apply makes an instance of a lone library component by component="key:…", and gives up on a key Figma cannot import (an unpublished library) within 10 seconds, saying why, instead of waiting until the request timed out.
  • tokens_bind and design_lint match a layer's opacity with the variables Figma's opacity fields take, kept as percents (50 for 0.5): an opacity variable of 50 was never offered, and a plain 0.5 one bound the layer at 0.5 %.
  • texts_replace walks a page or the whole file within the plugin's time limit and says more when it stops, instead of reading every text first, which on a big file could outlast the request.
  • tokens_read writes a number that font weights or opacities point at without px, as they read it (a hidden weight/700 primitive is 700, not 700px), and a number shown as text too. tokens_apply keeps a new opacity as the percent Figma's opacity fields take (0.4 is stored as 40), and its notes say when a number written without a unit and given no scopes will read back in px.
  • design_read and design_apply work while Figma Desktop has lost its connection: the file's own variables and styles are read from its lists, which Figma gives offline, instead of one by one, which Figma gives up on after ten seconds; a library's it cannot reach is left out. The same goes for every write that finds a token by id: design_apply binding a token, tokens_apply, tokens_bind, a text's look kept after new characters, execute's pw.variable, and tokens_read and screenshots in modes.
  • changes_since counts effects_apply's writes as Pixelwright's, and the plugin window names them.
  • A new frame laid out inside (a card) fills its grid cell with justify-self/align-self="stretch": it used to hug its content.
  • design_read writes a grid's child that fills its cell as stretch, apart from one that hugs, and a grid's padding.
  • Changing a grid's columns leaves its rows alone: rows read earlier and sent back could delete one Figma had added for children that did not fit, which Figma refused.
  • A grid's child moved to another cell narrows its span before it moves, so it no longer runs into a taken cell.
  • justify-content and align-items on a grid, and flex on a grid's child, say what to write instead of passing Figma's raw error.

0.3.2 — 2026-10-17

Added

  • The plugin's window says when a newer Pixelwright is out, with links to what is new and to the steps to update. Closed, it stays closed until the next version. The server asks npm once a day; PIXELWRIGHT_NO_UPDATE_CHECK=1 turns that off.

Fixed

  • design_apply answers x and y with left and top, and Figma's own names (fill, stroke, rotation, corner-radius) with the CSS that writes them, where it used to suggest the nearest spelling (id).
  • design_apply takes a bare number as px in sizes, places, gaps, paddings and radii (width="363").
  • A new text that fills its row (flex="1", align-self="stretch") takes the row's width: it used to stay 0 wide, a letter a line.
  • border-top and the other single sides draw on a new frame: the line used to come out 0 px wide.
  • src on a shape or a frame now points to background="url(…)", which fills any layer with a picture, an existing ellipse too; the hint used to speak of frames only.
  • screenshot with a clip on a layer too big to render whole renders the smallest opaque layer that holds the region alone, such as a page's section, and cuts it there; it used to fail with RESULT_TOO_LARGE.
  • A colour variable with transparency (a hairline at 14%) reads as the token alone, where design_read wrote color-mix(… 14%, transparent) on top of the variable's own alpha; design_apply writes color-mix() over such a variable at the opacity it says (Figma had replaced it with the variable's alpha), and a bound paint takes the variable's colour rather than a black placeholder where Figma does not resolve it.
  • tokens_apply says a mode past the file's Figma plan limit in plain words (how many modes the plan allows, which mode is left out) instead of Figma's raw error.

0.3.1 — 2026-10-15

Added

  • The website links the Orbit demo file in Figma, a small pricing site to try every tool on.

Fixed

  • The npm page's homepage is the website, not the GitHub readme.

0.3.0 — 2026-10-15

Added

  • design_read shows what an instance changed outside its component's properties ($override: a rewritten text, a recoloured icon), so the code knows which instances need a new property, a variant or a one-off.
  • outline, file_map and design_read show what the designer marked ready for dev (or completed) in Dev Mode.
  • design_read names the token Figma itself matches a raw spacing, radius, stroke or opacity to.
  • design_apply and tokens_apply take a version: a named version is saved in Figma's history before they change anything, for the designer to go back to.
  • pixelwright logs follows the logs of every running Pixelwright server on the computer in real time: tool calls, plugins connecting, errors. The bug report form asks for its output.
  • design_read keeps a list's item spacing, a line's round or square ends and a frame's grid style.
  • baseline_save keeps a screen or section as your code was built from it, in the project beside the code (.pixelwright/baselines/), with the files you built from it. Nothing is written to Figma.
  • baseline_diff tells what the designer changed since then, in design_read's terms: layers changed, added (with their XML), removed, hidden, moved or reordered; a change made in a component, once, with the instances it reached; token values in every mode; icons and images to export again. It sees edits made while the plugin was closed, library updates and variable values. Without a name it checks every baseline in the project. Accept what you built with baseline_save and the accept the diff gives.
  • version_save saves a named version in Figma's history when you ask for one, so the designer can open the design your code was built from; the baselines it names remember it. It needs edit access and Allow edits.
  • components_read tells which of the project's components builds each Figma component, from its Code Connect files, with the code's file. mapped: false lists only the components still without code, with the key a new mapping needs.
  • Code Connect batch files (*.figma.batch.json, Figma's own format) connect many components through one shared template, one row each. The guide gives a ready template whose rows map Figma properties to code props, so a component needs no template of its own.
  • A Code Connect template (// key=) or batch row ("key") can name the component's key. It then connects exactly that component in every file, a library's included, whatever it is called there.
  • components_read lists the nested instances a component exposes, with their properties: in code they are the component's own props. design_read marks them $exposed.
  • design_read and code_connect_read name the properties an instance's code never reads (unread), and code_connect_read names the variant values a template's mapping misses (values), so no value is lost to a snippet.
  • components_read with links: true gives the links people attached to components in Dev Mode, with the project file a code link points at, on Figma plans that have them.

Changed

  • Every easing is valid CSS: tokens_read, the prototype interactions design_read shows and Figma Motion write a keyword or cubic-bezier(), and a spring as linear() drawn from the spring itself (it used to be ease or a word).
  • In a Display P3 file, colours are written as color(display-p3 …) by design_read, tokens_read (in CSS and in DTCG files) and the checks, and colours written to it are converted to P3: they show as the designer chose them.
  • A version saved before a design_apply or tokens_apply write says in Figma that Pixelwright saved it, and waits a moment so Pixelwright's previous change is in it.
  • code_connect_read and design_read give each Code Connect file's source and say when that file no longer exists. code_connect_read says how each file matched (by key, by the component's link, or by name), and gives the id and key of each component none connects.
  • design_read names the components it shows that have no code yet, when the project has Code Connect files.

Fixed

  • design_apply writes a text of only no-break or em spaces as it is written, and a plain space typed between two styled parts of a text as one space: it used to add a space to both.
  • In a Display P3 file, design_read's own XML sent back to design_apply no longer changes a name or a note that holds a word like #FFF.
  • design_read's hints no longer take a text's own words, or a colour in a layer's name, note or link, for CSS that should use a token.
  • design_apply and tokens_apply save their version, check and write in the file the call started on, even when another Figma file comes to the front while they run.
  • inspect, measure, contrast_check, design_audit and fonts_check read the selection and then the layers from the same file, even when another Figma file comes to the front between the two.
  • design_apply no longer writes a new layer into the original when a mistyped tag inside a copy or a new instance holds it: the new layer is refused, and the copy's own layers named there are still written.
  • design_apply reads the layers named by id inside an element it does not create, or inside a <Span> outside a text, instead of dropping them, and says so when a <Span> inside a <Span> sets something (runs do not nest).
  • design_apply says when the XML holds no element, instead of answering as if it had written something.
  • design_apply changes layers of every Figma type design_read writes by their id (widgets, stickies, connectors, slides…), instead of refusing their tags: each takes what Figma gives its type (a sticky's fill and opacity, a connector's stroke, a stamp's size), and the rest is refused in plain words.
  • design_apply says when an existing <Icon> names another SVG instead of ignoring it: an icon cannot be redrawn in place, so delete it and create it again from the file.
  • design_read's XML sent back to design_apply no longer reports its own image and icon files as missing when several layers share a name and the read numbered their files (photo-2.png).
  • design_apply writes a background's new image: a url() naming another file, or another fit, was reported as changed but left the old image in place.
  • design_apply refuses a dashed underline without writing a solid one in its place, and gives one error, not two, for a link on a frame.
  • design_apply places a new component set made on the page beside the page's layers, as it places any new layer, instead of on top of them at the page's corner.
  • A design_apply dry run refuses what the real run refuses for a layer's type (a description on a frame, a dashed underline, a fill on a group) and a paint style inside a list of paints, and a property with several unknown tokens gives one error, not one per token.
  • An attribute design_apply cannot write leaves its layer as it was: a padding, corner radius or size with an unknown token, or a border per side on a layer without one, no longer writes half of itself, and what a call writes is always one undo step.
  • pixelwright logs keeps showing every server's lines: the shared log is set aside by whichever server writes past its size, at any time, and a server whose log another one set aside writes to the new file instead of the old one. Two servers starting at once no longer leave one of them logging to stderr alone.
  • The log names a tool call the client cancelled, instead of keeping it as waiting for an answer forever.
  • The plugin counts a piece of an image file sent to it twice only once, so design_apply never takes a file with a missing part as whole; a piece past the end of a file gets a clear error instead of a bare RangeError.
  • The plugin window names a saved version in plain words, not its internal operation name.
  • code_connect_read no longer counts the instances inside a connected instance as unconnected.
  • nodes_diff no longer calls an icon or image drawn anew when only its notes, link, prototype or animation differ.
  • screenshot says a bad save path before it looks for the file to shoot, so that error comes first.
  • The shared log keeps being written when its folder is deleted while servers run, and a full log that cannot be set aside is written on instead of being tried again on every line.
  • A Code Connect template's findInstance, findText and findLayers take null options as none.
  • design_apply refuses a corner radius on a <Line>, which has none, before anything is written, and says it has no properties when props is given to a layer that is no instance, instead of counting that as a write.
  • design_apply places an error for text outside a <Text> where its words start, not at the end of the line before.
  • The Orbit example names its code component as Figma's Code Connect defines it (component=PlanCard) and passes the card's description.

0.2.0 — 2026-10-14

Added

  • tokens_read writes Design Tokens Format (DTCG) files: one per mode of each collection, and one for the styles, ready for Style Dictionary and other DTCG tools.
  • design_read shows the properties a designer pinned in a Dev Mode annotation ($pins), and gives the Dev Mode measurements between layers in pixels.
  • design_read reads Figma Motion: each animated layer gets a short $motion summary, and the read gives the animation as CSS @keyframes placed over the timeline.

Changed

  • The plugin and the server speak a new version of their connection: run npx -y pixelwright@latest so both update together. An older server tells a newer plugin to update instead of failing on its reads.

Fixed

  • A component with a slot, and its instances, read again in design_read and components_read.

0.1.1 — 2026-10-13

Added

  • A changelog: every release with its date and what changed, in CHANGELOG.md and on the website.
  • Feedback has a home: GitHub Discussions for questions, ideas and what you built, and issue forms for bugs and feature requests. The plugin window, the READMEs and the website link there.
  • A Code Connect example for a button and a pricing card, the card showing its button through the button's own template.

Changed

  • Pixelwright's licence is FSL-1.1-MIT: use it for anything, at work and for clients, and change it for your own use, but not to build a competing product or service. Each version becomes MIT two years after its release.
  • The plugin stays a development plugin you import once from its manifest (npx -y pixelwright@latest puts it in place and keeps it current): Figma does not list plugins that overlap its own MCP server on the Community.
  • The README, the guide and the examples read Orbit, a demo pricing page made for Pixelwright, instead of a third-party design.

Fixed

  • A text in a variable font (Inter, for one) no longer carries font-variation-settings for axes a browser draws anyway: upright, normal width, optical size at the text's size.
  • The hint about layers left with Figma's default names reads right for a single layer.

0.1.0 — 2026-10-13

The first release: an MCP server and a Figma plugin that let AI agents (Claude Code, Cursor, Codex and other MCP clients) read and edit the Figma file you have open, through the Plugin API: no token, no API rate limits, any plan. Withdrawn from npm the same day in favour of 0.1.1.

Added

  • npx -y pixelwright@latest sets up Claude Code and Cursor, shows what to paste for other clients, and puts the plugin in place. The plugin pairs with the server once, with a code.
  • Reading: design_read gives a section as XML with CSS, tokens as var(--Name) and assets as files; inspect and measure give layers as Figma has them; outline, file_map and nodes_find find your way around a file.
  • Comparing and checking: nodes_diff, variants_read and breakpoints_find show how layers, states and screen sizes differ; screenshot and image_compare hold your build against the design; design_audit, contrast_check and fonts_check check the scale, contrast and fonts.
  • Tokens and components: tokens_read (CSS or JSON, every mode), tokens_usage, components_read, and code_connect_read with your Figma Code Connect templates, run locally on any plan.
  • Prototype, selection and changes: flow_read, selection_get, selection_wait, viewport_get, node_show and changes_since.
  • Writing, when you switch on Allow edits in the plugin: design_apply writes the same XML back (new layers, instances, components and variants, images), tokens_apply writes variables and styles, nodes_delete and execute. Each write is one undo step.
  • Several files and several MCP clients at once, sharing one bridge.