Skip to content

v0.8.0

Choose a tag to compare

@dannote dannote released this 20 Jan 18:44
· 129 commits to master since this release

Added

  • query command — XPath selectors for finding nodes (powered by fontoxpath)

    figma-use query "//FRAME"                              # All frames
    figma-use query "//FRAME[@width < 300]"                # Frames narrower than 300px  
    figma-use query "//COMPONENT[starts-with(@name, 'Button')]"  # Name starts with
    figma-use query "//FRAME[contains(@name, 'Card')]"     # Name contains
    figma-use query "//SECTION/FRAME"                      # Direct children
    figma-use query "//SECTION//TEXT"                      # All descendants
    figma-use query "//*[@cornerRadius > 0]"               # Any node with radius

    Full XPath 3.1 support: axes, predicates, functions, arithmetic

  • Multi-file support — proxy now supports multiple simultaneous plugin connections

    • Each plugin instance registers with fileKey and fileName
    • file list — show all connected files
    • file select <name> — switch active file (partial match supported)
    • status shows all connected files with active marker
  • Connector commands — work with connector lines

    • connector list — list connectors on current page
    • connector get <id> — get connector details (endpoints, stroke, line type)
    • connector set <id> — update connector properties (stroke, weight, line type, caps)
    • connector create — create connector (FigJam only, Figma API limitation)
  • figma_render MCP tool — render JSX via MCP protocol

  • MCP.md — documentation for Model Context Protocol integration

Changed

  • Extracted transformJsxSnippet to separate module for reuse

Fixed

  • @dannote/figma-use/render — missing color.ts in published package
  • Proxy connection cleanup on plugin disconnect