openpencil/packages
xemc 7dc46bb993 feat(figma-api): add exposeInstanceSwap for real instance-swap component properties
Adds figma.exposeInstanceSwap(slots, candidates, propertyName), which
exposes one or more nested instances as an instance-swap slot — the
enclosing component (or component set, walking up past intermediate
variant members) gets an INSTANCE_SWAP property offering the given
candidates, and each slot instance is tagged to respond to it. Mirrors
Figma's "Create component property > Instance swap", letting a designer
pick which component fills a slot (e.g. an icon on a button) instead of
the slot being baked-in static content.

Exposed as the expose_instance_swap MCP/CLI/chat tool.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-29 16:30:42 +03:00
..
cli fix(cli): use Node fs for import command 2026-08-24 20:26:52 +03:00
core feat(figma-api): add exposeInstanceSwap for real instance-swap component properties 2026-08-29 16:30:42 +03:00
demos
docs refactor(tools): organize internal CLI workflows (#600) 2026-08-29 14:42:44 +03:00
dom-css chore: refresh compatible dependencies (#545) 2026-08-18 17:44:40 +03:00
fig Merge remote-tracking branch 'origin/master' into pr-550-push-integration 2026-08-20 17:20:25 +03:00
harness refactor(ai): ship Harness as optional companion (#561) 2026-08-19 20:04:35 +03:00
kiwi Merge remote-tracking branch 'source/master' into victorwads/fast-pages-open-recent 2026-08-18 18:30:31 -03:00
mcp refactor(mcp): keep disabled tools typed across boundaries 2026-08-20 18:44:44 +03:00
pen chore: refresh compatible dependencies (#545) 2026-08-18 17:44:40 +03:00
scene-graph Merge pull request #562 from open-pencil/guide-authoring 2026-08-20 09:39:19 +03:00
vue feat(app): add language picker to General settings 2026-08-29 16:01:03 +03:00