analyze_design_scatter
Analyzes scattered hardcoded design tokens (colors, dimensions, strings) across a project and returns a categorized report to prevent context window exhaustion.
Instructions
Analyzes scattered hardcoded design tokens (colors, dimensions, strings) across the project.
Returns a compact, categorized report to avoid context window exhaustion.
When to use:
- Call during project onboarding, architecture audits, or before major UI refactorings.
- Call to locate hardcoded color literals, raw Dp values, and string literals across Jetpack Compose files.
When NOT to use:
- Do not use if you already know the exact token name or file (use find_token_by_color or list_tokens instead).
- Do not use for applying code changes directly (use set_token, add_token, or set_text instead).
Side effects:
- None (strictly read-only AST inspection, does not modify any source code or configuration).
Args:
category: 'all', 'colors', 'dimensions', or 'strings'.
limit: Maximum number of files to return per category (default: 10).
project_root: Optional path to project root.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "analyze_design_scatter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| category | No | all | |
| project_root | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |