set_variable_code_syntax
Declare the per-platform code syntax for a design variable. Set the exact token name (e.g., WEB: '--color-primary') so codegen uses your source token instead of deriving a name.
Instructions
Declare a variable's code-side token name per platform (codeSyntax) — the write half of the codeSyntax that get_design_context / get_variable_defs surface to codegen as the authoritative name (e.g. WEB: "--color-primary"). Per platform (WEB / ANDROID / iOS): a non-empty string sets the declaration, null removes it, an omitted platform is untouched. When authoring design-system variables from existing code tokens, declare the source token name here so future codegen resolves to the exact token instead of deriving a name. Returns { ok, variableId, name, codeSyntax } with the declarations now in effect.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| codeSyntax | Yes | Per-platform declarations: string sets, null removes, omitted is untouched | |
| variableId | Yes | Variable id |