Validate UI code against the design system
validate_snippetRuns the Brandrail Checker on UI code you wrote (TSX/JSX, Angular components and templates, Vue, Svelte, HTML, CSS, PHP, Twig, Mustache/Handlebars). Returns a brand score and each violation with the fix. Call once after writing UI with every file you changed in files, and fix every error and warning before finishing.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "validate_snippet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | A single file or snippet (when not using files) | |
| files | No | Every file you changed, checked together as one result. Preferred over code/filename. | |
| project | No | Repo or app name, e.g. customer-portal (shown in the dashboard) | |
| filename | No | File name for code; the extension decides how it's parsed | snippet.tsx |