set_variable_code_syntax
Set or remove a variable's code token name per platform (WEB, iOS, Android) to ensure codegen uses the exact token name instead of deriving one. Useful for mapping design variables to existing code tokens.
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 |