Figma
Generate diagrams and code from Figma context.
| Family | Category | Sub-type | Auth type |
|---|---|---|---|
| Design | design | design | bearer_token |
Overview
| Product URL | API docs | Supported features |
|---|---|---|
| https://www.figma.com/ | https://developers.figma.com/docs/rest-api/ | tool_discovery, health_check |
Setup
- Install the connector instance.
- Store the provider token or connection secret.
- Sync the tools and test the connection.
- Review approval-gated write tools before running them.
Auth & Configuration
This connector does not require additional instance config.
Available Tools
| Tool | Requires approval | Description |
|---|---|---|
get_file | No | Retrieve a Figma file and its node tree. |
get_dev_resources | No | Fetch dev resources attached to a Figma file. |
list_team_projects | No | List projects for a Figma team. |
Use get_file for the main execution example below because it is safe to run without approval.
Examples
Install
curl -X POST "https://api.chainabit.com/api/v1/connectors/instances" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"connectorKey": "figma",
"displayName": "Figma"
}'Credentials
curl -X POST "https://api.chainabit.com/api/v1/connectors/instances/$INSTANCE_ID/credentials" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"credType": "bearer_token",
"credentials": {
"token": "YOUR_BEARER_TOKEN"
}
}'Execute
curl -X POST "https://api.chainabit.com/api/v1/connectors/instances/$INSTANCE_ID/tools/tool_get_file/execute" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"input": {}
}'Security Notes
- Keep tokens, API keys, and connection strings in the encrypted credentials vault.
- Do not allow arbitrary server URLs for remote MCP connectors.
Troubleshooting
- If the health check fails, verify the token scope or credential payload and try again.
- If the tool list is empty, re-run sync-tools after storing the latest credentials.