figma_scan_codebase
Scan a local codebase to identify UI components in common frameworks and return their file paths for mapping to Figma designs.
Instructions
Scan a local codebase directory for UI components (React, Vue, Svelte, Swift, Compose, Angular, Flutter). Returns a list of discovered components with their file paths and frameworks. Use this before figma_match_components to find code-to-design mappings.
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": {
"directory": "<directory>"
},
"name": "figma_scan_codebase"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| maxDepth | No | Max directory depth to scan. | |
| directory | Yes | Absolute path to the codebase root (e.g., '/Users/me/project'). Supports ~ for home. | |
| frameworks | No | Filter to specific frameworks. Default: all. |