figma_add_code_connect_map
Attach a local Code Connect mapping (source file and component name) to a Figma node, storing the mapping in shared plugin data in that file.
Instructions
Attach a local Code Connect mapping (source file + component name) to a node. Stored in shared plugin data in this file.
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": {
"nodeId": "<nodeId>",
"source": "<source>",
"componentName": "<componentName>"
},
"name": "figma_add_code_connect_map"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | ||
| nodeId | Yes | ||
| source | Yes | Path or URL of the code component | |
| fileKey | No | Which connected Figma file to use: its fileKey (figma_whoami) or, when omitted, the only connected file. Required once more than one file is connected; figma_ping lists them. | |
| language | No | ||
| componentName | Yes |