codeloop_generate_spec
Generate a design specification from Figma design tokens (colors, typography, spacing) so the agent can match them in code.
When to use codeloop_generate_spec
Use `codeloop_generate_spec` when your AI agent needs to generate a design specification from figma design tokens (colors, typography, spacing) so the agent can match them in code.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| figma_file_id | string | no | Figma file ID. Falls back to .codeloop/figma.json. |
| project_dir | string | no | Project root. |
What you get back
Path to generated spec markdown + token JSON.
FAQ
What does codeloop_generate_spec do?
Generate a design specification from Figma design tokens (colors, typography, spacing) so the agent can match them in code.
When should an AI agent call codeloop_generate_spec?
Use `codeloop_generate_spec` when your AI agent needs to generate a design specification from figma design tokens (colors, typography, spacing) so the agent can match them in code.
What does codeloop_generate_spec return?
Path to generated spec markdown + token JSON.
Is codeloop_generate_spec part of the CodeLoop MCP server?
Yes. CodeLoop ships as an MCP server installed via `npx codeloop init`. Cursor and Claude Code call it automatically once the User Rule (Cursor) or CLAUDE.md (Claude Code) is in place.