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_applywrites Pixelwright XML, the formatdesign_readreturns, 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. Avar(--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_deletedeletes up to 500 layers by id, each on its own: a layer Figma will not delete stays, with the reason.version_savesaves a named version in the file's history, when the user asks for one.tokens_applywrites collections, modes, variables, aliases and paint, text and effect styles in one undo step, in the shapetokens_readreturns: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_bindbinds 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 (choosepicks one and snaps a near value to a token), a value no token holds is listed fortokens_apply, andremapmoves every use of one token to another, inside instances too withinstances: "override".design_readwrites each Dev Mode note with the properties pinned to it, andinspectlists them;design_applywrites, changes and removes the pins.- Variable fonts:
design_readwrites a text's axes asfont-variation-settings, anddesign_applywrites them; an axis the font lacks or a value out of its range is refused. executetakesversionagain: a named version saved before the code runs.- The guide's
writeandlayouttopics are back, and a recipe checks a web build against the design without a browser.
Changed
tokens_applytakes onetokensinput, the shapetokens_readreturns withformat: "json", in place of 0.7.0'scollectionsandstyles.baseline_saveasks for a baseline only when the user tracks design changes, not after everydesign_read.
Fixed
design_readwrites 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_readnotes that:rootkeeps 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_findtakesfill, 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_findtakes a list inwithin: 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'sscriptor the read tools. assets_exportsays whatfromwrites: an image behind a layer's content as it was placed, an image layer rendered at its export settings (else 2x);scaleandformatapply tonodesonly.inspectsays that an image'surl(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@lateststayed 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_readwrites a text's stroke as-webkit-text-stroke(an outside stroke twice as wide withpaint-order: stroke fill; an inside one with a note, since CSS has none), and a layer's fill blend modes asbackground-blend-mode, one per background, top first.design_readsays more of what Figma shows: a drop shadow Figma draws behind a see-through layer isfilter: drop-shadow()(CSS cuts abox-shadowout under the box), a link that opens in a new tab hastarget="_blank", a locked layer has$locked, and corner smoothing is a$cssnote with Figma's value.design_readtakesautoLineHeight: "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 staynormal, and the line-height hint names only the texts still writtennormal.assets_exporttakesnames, 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_exportsay that WEBP keeps transparency exactly, at any quality. inspectgives the blend mode of a layer and of each of its fills, with CSS'smix-blend-modename, every fill's type (a video's too), and the variables bound to a layer's padding, gap, radius and size under the token namesdesign_readwrites. It takes up to 100 layers a call;leftcounts the selected layers past them.nodes_findwithoutwithinnames the page it searched inpage, and when it finds nothing there,hintsays how to search elsewhere.nodes_diffandvariants_readsay incutwhen a read was cut short.tokens_usagereturns at most 500 layers (moresays there are others) and takesbudgetMs: the scan stops there with what it found and a note.components_readnames the project file a component's code link points at inpath, for GitHub, GitLab and Bitbucket file links andvscode://filelinks.statussays which connected file's tab is in front (visible): a file behind other tabs answers slowly.executetakes 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; andscript, code run on the server wherepw.nodesFind(...)and the other reads call the read tools (50 calls a run, 4 at once), withutilsto filter and join their answers. A script never writes and throws on a key an answer lacks. The guide'sscripttopic has its limits.types_readgives the whole answer type of each named read as TypeScript, every field with its comment, so a script reads only keys that exist.nodes_findtakes a list of phrases intext(any matches) andtextRegex,fontSizeranges (lt,lte,gt,gte),visible(falsefinds hidden layers),componentId,properties(every property's value on each instance, variant values included) andfields(keep only the fields you name). It returns a text'scharacters, its ancestors inpathand, across the file, itspage;hidden: truemarks a layer a viewer does not see.nodes_findgives each instance itscomponent(andsetfor a variant) and the properties itchangedfrom the component's defaults.inspectreads a whole subtree in one call:withinwithdepth, andfieldsto keep only some groups (box,parent,path,fills,strokes,effects,layout,bound,text,component,interactions);moreandleftIdssay what was left. It also givesparentLayoutwithlayout, a mixed text's runs assegments,pathwith 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_readtakesquery(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,aliasOfwith the tokens it passes through.tokens_usagetakesraw: true: the colours bound to no style and no variable, each with its count and layers.outlinetakesabsolute: truefor boxes in page coordinates;file_mapgives each layer'schildCount.components_readtakesinstances: true(each instance's id, name and page, 100 at most, for the first 25 components listed) andreferences: true(the layers bound to each component property).- The read tools say what an absent field means (no
hiddenis visible; no padding is 0) and that an answer is complete unlessmoreis 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
statusnames a plugin it turned away, with its version. Runnpx -y pixelwright@latest setupagain 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 (
/mcpin 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,nameanddisplay="none"(and$visiblePropwhen a component property shows it) and no children, where 0.7.0 left it out.baseline_difflists it asnow: hiddenorwas: hidden, andstyles_comparenotes a hidden layer instead of comparing it. A hidden root is still refused. design_readno 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$cssby a fixed note.- Blurs now match how Figma renders them.
design_readandtokens_readwrite a layer or background blur of radius 20 asblur(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'smaxCharscuts 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_comparecounts differing pixels another way, so re-take once anydifferentyou 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 thediffimage marks antialiased pixels yellow.fonts_checkasks Fontsource's catalogue first whether Google Fonts serves a family, and Google's own list only when Fontsource does not answer.executeprints what its code logs as JavaScript writes it:undefined,NaNandInfinityprint as themselves, not asnull.executeis 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 throughexecute, 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_comparecompares 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_readwrites 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 aslinear(). PastmaxCharsevery format, not only JSON, gives the summary with the most whole tokens that fit, andmaxCharsgoes down to 500.guidehas five topics,workflow,xml,tokens,assetsandscript, 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_readandtokens_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_readnotes it in$cssand lists its asset with no file,inspectnames it, andassets_exportanswers its layer withkind: "video"and asks for the file from the designer, since the Plugin API cannot export a video. assets_exportwrites one file for a layer named more than once innodes.assets_exportwithoriginaltakes each layer's topmost visible image fill, not a hidden one under it, and notes the other image fills.file_mapno longer fails when Figma cannot load a page. Every page is still listed by id and name, the pages that loaded have their layers, andpagesNotReadnames the others with Figma's reason.file_mapsays when a section's layers were cut short, with itstotalandmore, where 0.7.0 stopped at 1,499 without a word.- Stroke weights keep their fractions: a 2.5 border reads as
2.5px, not3px. - 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'sassetsDir,assets_export'sdir,screenshot'ssave,image_compare's files andexecute'scodePath. tokens_readwithformat: "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_usagefinds a style or variable that only one run of a mixed text uses.components_readwithinstancesleaves 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
executestarted may run on after Allow edits goes off. - The tools that write, until the editing versions:
design_apply,nodes_deleteandversion_savecome back in 0.9.0;tokens_apply,tokens_bind,texts_replace,effects_apply,instances_reattachandicons_insertin 0.10.0. - The design checks
contrast_check,design_lint,design_audit,a11y_readandstates_findcome back with the editing versions. screenshot's andimage_compare'smodes, which rendered a layer in other variable modes, come back in 0.10.0.execute'sversion(a named version saved before the code runs) and itspw.paintandpw.variablehelpers come back with editing.- Code Connect is gone:
code_connect_read,design_read'scodeinput with$codeandcodeComponents, andcomponents_read'scodefield andmappedinput. - Figma Motion is no longer read:
design_readwrites no$motionand nomotionkeyframes. - The guide's
writeandlayouttopics come back with editing; itscode-connectandemailtopics are gone.
0.7.0 — 2026-10-22
Added
design_readreads Figma's text on a path (a label along an arc) as<TextPath>: its text, spans and text CSS as aText's,d(the path in its own box) andstart(the segment and the place along it where the text begins).design_applyedits text on a path:<TextPath id="…">New words</TextPath>changes its characters and keeps its look, its text CSS is written as on aText, andstartmoves where the text begins. A changeddis refused, since Figma cannot change the path: delete the layer and make it again. So is a line height infont: a text on a path has none.design_applymakes text on a path alongd(any SVG path) orarc="<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, withoutstart, 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.inspectgives every layer itscenter, and witharound(a layer's id, such as a ring's, or a point) each layer'sdistancefrom it and itsangleas CSSrotate()turns: 0 straight up, clockwise to 360.nodes_findfinds instances byvariant("State=Hover, Size=L"), andcounts: truecounts every instance found, past thelimit, 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.executesays innotewhen 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_applymakes 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:namerenames 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,visiblePropandswapPropwork 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'spropertieslists what was added (a dry run's: what would be).- A shadow's colour can be a colour variable:
design_applybindsvar(--shadow)inbox-shadow, inset shadows andtext-shadow,design_readandtokens_readwrite a bound one so, andtokens_applyeffect styles take it. design_applyscales an existingIconwhosewidthorheightchanges, 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 indesign_applysays to create it withtokens_applyfirst:design_applybinds tokens and never makes them. visiblePropdefaults to whether the layer shows, so a layer the call hides gets a property that is off.
Fixed
- A
design_applycall 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_applyandtokens_applylook 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_applytakes a variable'stypein any case:"color"isCOLOR.design_applychanges a layer deep inside a big screen in one call, nested asdesign_readwrites it: the layers named and the ones on the way to them are read first, instead of "could not read its current state".design_applyprops=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 writesays howpropssets an instance swap property: by a component's or set's name orkey:<key>.
0.5.0 — 2026-10-20
Added
executetakesscriptin place ofcode: 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_linttakes a list of up to 30 layer ids inwithin, 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_findandtokens_usagetakewithin: "file"and look on every page.components_readtakesfields, so a big component library answers with only the fields asked for (names of the icon sets, for one).tokens_bindwithremaptakesinstances: "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_applywrites a text style's letter spacing and text case, from thealsolisttokens_readgives or after the font, and blur effect styles (filter: blur(),backdrop-filter: blur()) beside shadows.design_applybinds an effect style fromfilterandbackdrop-filterwithvar(--Style), as frombox-shadow.design_readshows which component property a component's layer is bound to:$visibleProp,$propand$swapProp, read only.design_applytakespadding-top,padding-right,padding-bottomandpadding-left, each over the layer's other sides, and itscreatednames each layer it made beside its id.statussays 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_checkrates 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_lintandtokens_bindcheck 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_bindleaves 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_lintlists 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_readwithformat: "json"pastmaxCharsgives as many whole tokens as fit, and says how to read the rest.design_applytakes a size together with both edges as CSS does (the size wins, the layer still stretches), places a layer byleftandtopwhere 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,skipInvisibleInstanceChildrenfalse in the editor); an error about a synchronous call names the async one to make, and a script that turnsskipInvisibleInstanceChildrenon gets it set back after the call.
Fixed
- A
tokens_applyretried 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_sincecounts whattexts_replaceandinstances_reattachchanged as Pixelwright's.design_lintnever 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_checkstops 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_checksays 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_lintnotes the same for its contrast rule.image_compareno longer reads antialiased edges as shifts of several pixels.nodes_deletedeletes a layer in an instance's slot, anddesign_applymoves layers within a slot.executecode 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_applynote=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_applyhiding a layer inside an instance withdisplay="none"no longer answers "does not exist".design_applyplaces a new component set's variants in its grid withgrid-rowandgrid-column.design_applyafter acopyOfwith edits inside lists the copy's layers it wrote inchanged, andbefore=andafter=inside a copy place by the copy's layers.design_applykeeps a new text namedTextwhenname="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_applywithdryRunno 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_applywithdryRunlists the layers it would create (without ids) and the layers it would change, as the write does.design_lintno 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_applyputs 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, andremovetakes them off.design_lintchecks 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_readsays 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_findlists 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_bindbinds 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 fortokens_apply,choosesnaps a near value to a token, andremapmoves every use of one token to another.instances_reattachputs 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;swapmakes instances of one component instances of another (a set's variant with the same values), andresettakes instances' overrides off, their look only or all of them.design_readwrites gradients as CSS (linear-gradient,radial-gradient,conic-gradient, as Figma's own CSS gives them), anddesign_applypaints them back from the same CSS, a stop's token bound to its colour variable;tokens_applywrites gradient paint styles.mix-blend-modeandmask="alpha|vector|luminance|none"are read and written too.texts_replacefinds 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_readwrites a variable mode set on a layer asdata-<collection>="<mode>"(data-color-modes="dark"), the selectortokens_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_applysets a layer's mode the same way, anddata-<collection>=""clears it.guide layouttells 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_insertfinds 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.executegives the codepw, which stays from one call to the next while the plugin window is open:pw.statefor 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.versionsaves a named version first, andtimeoutwaits up to five minutes for a long task.image_comparecompares a layeragainstanother layer, rendered the same way, with no PNG on disk: a variant against its default, a rebuilt frame against the original.styles_comparechecks a build's computed styles against the design, layer by layer: give each layer with whatgetComputedStylereturns 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_applysets a variable'sscopes, the fields Figma's pickers offer it for (["FONT_WEIGHT"],[]to hide it), and itscodeSyntaxon 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_readwithrepeats: truereads a list of alike items (features, cards, rows) once: the first stands for all, marked$repeat="3", andrepeatsgives each item's own texts, files and variants as rows, so a long list costs a fraction of the read. Withnearby: 400it 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_searchfinds 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 withdesign_apply.
Changed
design_applyreads arotate()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_applymakes an instance of a lone library component bycomponent="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_bindanddesign_lintmatch 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_replacewalks a page or the whole file within the plugin's time limit and saysmorewhen it stops, instead of reading every text first, which on a big file could outlast the request.tokens_readwrites a number that font weights or opacities point at without px, as they read it (a hiddenweight/700primitive is700, not700px), and a number shown as text too.tokens_applykeeps a new opacity as the percent Figma's opacity fields take (0.4 is stored as 40), and itsnotessay when a number written without a unit and given no scopes will read back in px.design_readanddesign_applywork 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_applybinding a token,tokens_apply,tokens_bind, a text's look kept after new characters,execute'spw.variable, andtokens_readand screenshots in modes.changes_sincecountseffects_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_readwrites a grid's child that fills its cell asstretch, 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-contentandalign-itemson a grid, andflexon 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=1turns that off.
Fixed
design_applyanswersxandywithleftandtop, 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_applytakes 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-topand the other single sides draw on a new frame: the line used to come out 0 px wide.srcon a shape or a frame now points tobackground="url(…)", which fills any layer with a picture, an existing ellipse too; the hint used to speak of frames only.screenshotwith aclipon 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 withRESULT_TOO_LARGE.- A colour variable with transparency (a hairline at 14%) reads as the token alone, where
design_readwrotecolor-mix(… 14%, transparent)on top of the variable's own alpha;design_applywritescolor-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_applysays 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_readshows 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_mapanddesign_readshow what the designer marked ready for dev (or completed) in Dev Mode.design_readnames the token Figma itself matches a raw spacing, radius, stroke or opacity to.design_applyandtokens_applytake aversion: a named version is saved in Figma's history before they change anything, for the designer to go back to.pixelwright logsfollows 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_readkeeps a list's item spacing, a line's round or square ends and a frame's grid style.baseline_savekeeps 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_difftells what the designer changed since then, indesign_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 withbaseline_saveand theacceptthe diff gives.version_savesaves 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_readtells which of the project's components builds each Figma component, from its Code Connect files, with the code's file.mapped: falselists 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_readlists the nested instances a component exposes, with their properties: in code they are the component's own props.design_readmarks them$exposed.design_readandcode_connect_readname the properties an instance's code never reads (unread), andcode_connect_readnames the variant values a template's mapping misses (values), so no value is lost to a snippet.components_readwithlinks: truegives 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 interactionsdesign_readshows and Figma Motion write a keyword orcubic-bezier(), and a spring aslinear()drawn from the spring itself (it used to beeaseor a word). - In a Display P3 file, colours are written as
color(display-p3 …)bydesign_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_applyortokens_applywrite says in Figma that Pixelwright saved it, and waits a moment so Pixelwright's previous change is in it. code_connect_readanddesign_readgive each Code Connect file'ssourceand say when that file no longer exists.code_connect_readsays 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_readnames the components it shows that have no code yet, when the project has Code Connect files.
Fixed
design_applywrites 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 todesign_applyno 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_applyandtokens_applysave 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_auditandfonts_checkread the selection and then the layers from the same file, even when another Figma file comes to the front between the two.design_applyno 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_applyreads 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_applysays when the XML holds no element, instead of answering as if it had written something.design_applychanges layers of every Figma typedesign_readwrites 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_applysays 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 todesign_applyno 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_applywrites a background's new image: aurl()naming another file, or another fit, was reported as changed but left the old image in place.design_applyrefuses a dashed underline without writing a solid one in its place, and gives one error, not two, for a link on a frame.design_applyplaces 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_applydry 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_applycannot 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 logskeeps 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_applynever takes a file with a missing part as whole; a piece past the end of a file gets a clear error instead of a bareRangeError. - The plugin window names a saved version in plain words, not its internal operation name.
code_connect_readno longer counts the instances inside a connected instance as unconnected.nodes_diffno longer calls an icon or image drawn anew when only its notes, link, prototype or animation differ.screenshotsays a badsavepath 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,findTextandfindLayerstakenulloptions as none. design_applyrefuses a corner radius on a<Line>, which has none, before anything is written, and says it has no properties whenpropsis given to a layer that is no instance, instead of counting that as a write.design_applyplaces 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_readwrites 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_readshows the properties a designer pinned in a Dev Mode annotation ($pins), and gives the Dev Mode measurements between layers in pixels.design_readreads Figma Motion: each animated layer gets a short$motionsummary, and the read gives the animation as CSS@keyframesplaced over the timeline.
Changed
- The plugin and the server speak a new version of their connection: run
npx -y pixelwright@latestso 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_readandcomponents_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@latestputs 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-settingsfor 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@latestsets 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_readgives a section as XML with CSS, tokens asvar(--Name)and assets as files;inspectandmeasuregive layers as Figma has them;outline,file_mapandnodes_findfind your way around a file. - Comparing and checking:
nodes_diff,variants_readandbreakpoints_findshow how layers, states and screen sizes differ;screenshotandimage_comparehold your build against the design;design_audit,contrast_checkandfonts_checkcheck the scale, contrast and fonts. - Tokens and components:
tokens_read(CSS or JSON, every mode),tokens_usage,components_read, andcode_connect_readwith your Figma Code Connect templates, run locally on any plan. - Prototype, selection and changes:
flow_read,selection_get,selection_wait,viewport_get,node_showandchanges_since. - Writing, when you switch on Allow edits in the plugin:
design_applywrites the same XML back (new layers, instances, components and variants, images),tokens_applywrites variables and styles,nodes_deleteandexecute. Each write is one undo step. - Several files and several MCP clients at once, sharing one bridge.