axint.tokens.ingest
Ingest design tokens from JSON, JavaScript, or CSS and output a SwiftUI token enum to preserve brand colors, dimensions, and typography for component generation.
Instructions
Ingest design tokens from JSON, JS/TS object exports, or CSS variables and return a SwiftUI token enum. Use this before generating Swarm-style views/components so agents can preserve exact brand colors, dimensions, radii, spacing, and typography. No files... Use: use before view/component generation when a design system should be preserved. Effects: read-only Swift token output; writes no files and uses no network.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | No | Inline token source. Supports JSON objects, JS/TS object exports, and CSS custom properties. | |
| sourcePath | No | Path to a token file such as swarm-tokens.js, tokens.json, or tokens.css. | |
| namespace | No | Swift enum namespace to generate. Example: SwarmTokens. Defaults to AxintDesignTokens. | |
| format | No | Output format. swift returns the SwiftUI token enum, json returns normalized tokens, markdown returns an... |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Primary Axint tool response text, matching the first text content block. | |
| isError | No | Whether Axint marked the tool response as an error. |