Propose a new token
propose_tokenValidate a new design token's name, scope, type and value, then return a JSON Patch and unified diff preview so a human can review before any file is written.
Instructions
Prepare the addition of a token. Validates the name (lint_naming), collisions, the scope and the value (aliases must exist and have the same type), then returns a preview: the target file, a JSON Patch and a unified diff. Nothing is written unless confirm is true AND the server was started with writes allowed. Default to a preview and let a human review it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Scope the token to one mode of the brand. Requires brand | |
| path | Yes | Dot path of the new token, for example color.fg.subtle | |
| type | Yes | ||
| brand | No | Scope the token to one brand. Omit for a token shared by all brands | |
| value | Yes | An alias such as {color.neutral.500} (preferred for semantic tokens) or a literal: #1a73e8, 16px, 1.5 | |
| confirm | No | false (default) returns a preview and writes nothing. true writes the file, only after human review | |
| description | No | Intent of the token: when to use it. Search and agents rely on it |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| diff | Yes | Unified diff of the target file | |
| path | Yes | ||
| patch | Yes | RFC 6902 JSON Patch applied to the target file | |
| status | Yes | ||
| target | Yes | Token file that receives the change, relative to the tokens directory | |
| message | Yes | ||
| warnings | Yes | ||
| violations | Yes |