diagnose_styling
Generate a Shadow DOM styling guide for web components with token prefix, theming, dark mode, and anti-pattern warnings to prevent CSS mistakes.
Instructions
Generates a Shadow DOM styling guide for a web component — token prefix, theming approach, dark mode support, anti-pattern warnings, and correct CSS usage snippets. Use this before writing any component CSS to prevent Shadow DOM mistakes.
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": {
"tagName": "<tagName>"
},
"name": "diagnose_styling"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| libraryId | No | Optional library ID to target a specific loaded library instead of the default. | |
| tagName | Yes | The custom element tag name to diagnose (e.g. "sl-button"). |