Canonicalise a Tailwind class list
tailwind_canonicalizeRewrite Tailwind class lists into canonical form and order: convert arbitrary values to theme tokens, rename deprecated spellings, and sort classes like prettier-plugin-tailwindcss.
Instructions
Rewrite a class list into Tailwind's canonical form and order: arbitrary values that match a theme token become that token, deprecated spellings are renamed, and the classes are sorted the way prettier-plugin-tailwindcss would sort them.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"candidates": "<candidates>"
},
"name": "tailwind_canonicalize"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | No | Absolute path to the project to inspect. Defaults to the server's working directory. Use it when the Tailwind project is not the current working directory. | |
| candidates | Yes | The class list to canonicalise, e.g. ['mt-[16px]', 'p-4', 'flex'] |