mirror of
https://github.com/storytold/figcraft.git
synced 2026-11-19 08:36:24 +00:00
inspect.designContext and the MCP tool design_context read the selection (or ids, or a scope) in one call. Each layer keeps apart the values the designer set (explicit), those layout or the file worked out (derived) and those with no direct CSS equivalent (unsupported, with the reason). The variables (every mode's stored and resolved value), styles, components, fonts and assets the tree uses are joined once, and `missing` says what the design doesn't specify. A connected instance gives its code snippet instead of its layers. Large trees are capped and say so, and the MCP tool asks for fewer layers until the result fits the client.