get_spec
Retrieve the complete schema and details of a specific design system specification by name to examine, modify, or verify before generating code or analyzing designs.
Instructions
Fetch the full body of a single spec by name.
Prerequisites: Spec must exist in the registry. Use get_specs to enumerate available spec names.
Returns on success: Full spec object as JSON — shape depends on type: ComponentSpec includes atomicLevel, props, variants, composesSpecs, codeConnect, and WCAG fields; PageSpec includes sections and meta; DataVizSpec includes chartType and dataShape.
Error behavior: Returns isError with message Spec "<name>" not found if the name does not match any saved spec.
Use this tool vs get_specs: get_specs gives you names and types (cheap list operation); get_spec gives you the full schema body for a single spec. Use get_spec when you need to read, modify, or verify the details of a known spec before generating code or calling analyze_design with spec-compliance mode.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name of the spec to retrieve (case-sensitive, matches the spec's 'name' field, not the filename). Use get_specs first to list available names. |