Skip to main content
Glama

resolve_css_api

Resolves ::part(), CSS custom properties, and slot references in CSS code against actual component API data, validating each reference and suggesting alternatives for invalid ones.

Instructions

Resolves every ::part(), CSS custom property, and slot reference in agent-generated code against the actual component CEM data. Returns a structured report showing which references are valid, which are hallucinated, and suggests the closest valid alternatives. Call this BEFORE shipping any CSS to verify that every part name, token name, and slot name actually exists on the target component.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
libraryIdNoOptional library ID to target a specific loaded library instead of the default.
cssTextYesThe CSS code to resolve against the component API.
tagNameYesThe custom element tag name (e.g. "sl-dialog").
htmlTextNoOptional HTML code to validate slot attribute references against the component API.

Tool Definition Quality

Score is being calculated. Check back soon.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/bookedsolidtech/helixir'

If you have feedback or need assistance with the MCP directory API, please join our Discord server