design_to_code
Convert Figma designs to React components and automatically create a GitHub pull request for the generated code.
Instructions
Convert Figma design to React component and create GitHub PR. Accepts Figma URLs or file IDs.
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": {
"figmaInput": "<figmaInput>",
"componentName": "<componentName>"
},
"name": "design_to_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| figmaInput | Yes | Figma URL (with node selection) or file ID. Example: https://www.figma.com/file/abc123/Design?node-id=1%3A2 | |
| componentName | Yes | Name for the generated React component (e.g., "HeroButton") | |
| outputPath | No | Output directory for component files (default: "./src/components") | ./src/components |
| githubBranch | No | GitHub branch name for the changes (default: auto-generated) | auto-generated |