read_plugin_data
Read private or shared plugin data from a Figma node. Provide the node ID and key to retrieve custom metadata, i18n tags, or design annotations.
Instructions
Read plugin data (private or shared) from a Figma node.
Use for: i18n metadata, design-system tags, custom plugin annotations, anything stored via setPluginData / setSharedPluginData.
If namespace is omitted, reads private pluginData (node.getPluginData(key)).
If namespace is provided, reads sharedPluginData (node.getSharedPluginData(namespace, key)).
Returns {value: ""} (empty string) when the key does not exist — Figma's API never throws here.
Examples: read_plugin_data({node_id: "1:5", key: "ref"}) read_plugin_data({node_id: "1:5", namespace: "i18n", key: "ref"})
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node_id | Yes | Figma node id (resolve via find_nodes / get_selection first). | |
| namespace | No | Optional sharedPluginData namespace. Omit for private pluginData. | |
| key | Yes | Key to read. |