css_var
Track down where CSS custom properties like --bg are defined and used across .css files and HTML style blocks, since single-file language servers cannot cross-reference them.
Instructions
Where is this --custom-property defined and used? Example: css_var(name="--bg").
The CSS/HTML language servers only see one file at a time, so var(--x)
usages can't be cross-referenced across files that way — this scans
.css files and HTML <style>/style="…" blocks/attributes instead.
name may be given with or without the leading --. Definitions (value
enclosing context, e.g.
@media (prefers-color-scheme: dark) › :root) and usages (grouped by file with line numbers) are reported separately per configured root (seeWEBNAV_MCP_ROOTS; a single unnamed root by default), since each may define its own values.queryis accepted as an alias forname.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| query | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |