figma-vault

v0.1.5
io.github.NBhey/figma-vault Checked 2 days ago Published 2 months ago

Figma designs pulled once into a local vault; AI agents read them offline with no rate limits

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

vault_list List designs

Every exported document: docId, file and node name, export time, node count.

vault_get_doc Whole document

Normalized design tree together with its tokens. maxDepth cuts the tree by depth (0 — the root only); truncated nodes get childrenOmitted. Hidden nodes are not returned without includeHidden.

ParameterTypeDescription
docId *stringDocument id as returned by vault_list
includeHiddenbooleanAlso return nodes hidden in Figma (hidden: true) — optional component slots. Defaults to false: building the screen as it looks does not need them.
maxDepthintegerHow many levels below the root to return. Omit for the whole tree.

vault_get_node Node subtree

A node by id with all of its descendants. Use it instead of pulling the whole document.

ParameterTypeDescription
docId *stringDocument id as returned by vault_list
nodeId *stringNode id in Figma format, for example 1:42
includeHiddenbooleanAlso return nodes hidden in Figma (hidden: true) — optional component slots. Defaults to false: building the screen as it looks does not need them.

vault_get_tokens Design system tokens

Colors, text styles and effects of the document. Nodes refer to them via text.token.

ParameterTypeDescription
docId *stringDocument id as returned by vault_list

vault_get_asset Design asset

An image from the document by the path from node.asset.path (for example assets/logo.svg) or screenshot.png. Raster comes back as an image, svg as its source.

ParameterTypeDescription
docId *stringDocument id as returned by vault_list
path *stringPath inside the document directory, for example assets/hero.png