get_external_css
Extract design tokens and file statistics from external CSS files without returning CSS content by default, avoiding response size limits. Request full CSS only when needed.
Instructions
Extract design tokens from CSS files. DEFAULT BEHAVIOR: Returns ONLY tokens and file statistics (small response ~1-3K tokens). Does NOT return CSS content by default to avoid token limits. For full CSS content, explicitly set includeFullCSS=true and maxContentSize. Perfect for analyzing design system tokens without hitting response size limits.
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": {
"cssUrl": "<cssUrl>"
},
"name": "get_external_css"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cssUrl | Yes | URL of CSS file to analyze. IMPORTANT: Tool returns only design tokens by default (not CSS content) to avoid response size limits. | |
| extractTokens | No | Extract design tokens (colors, spacing, typography, etc.). Default: true. This is the main purpose of this tool. | |
| includeFullCSS | No | OPTIONAL: Set to true ONLY if you need the actual CSS content. WARNING: Large CSS files may hit token limits. Default: false (recommended). | |
| maxContentSize | No | OPTIONAL: Max CSS content characters when includeFullCSS=true. Default: 10000. Larger files will be truncated. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The absolute URL that was fetched | |
| tokens | No | null when extractTokens=false | |
| content | No | Only when includeFullCSS=true | |
| analysis | Yes | ||
| fileSize | Yes | ||
| truncated | No | ||
| tokenCount | Yes | ||
| originalUrl | Yes | The URL as supplied by the caller | |
| displayedSize | No | ||
| tokensExtracted | Yes | ||
| fileSizeFormatted | No | ||
| truncationWarning | No |