Plugin-created extended collection is empty, while manually created one works
We’re seeing a difference between extending a published variable collection through the Plugin API and through Figma’s UI.
Our test library contains one number variable with a value of 8. In a second file:
Using Extend collection manually works: the inherited variable appears and is included in the mode’s JSON export.
Using await figma.variables.extendLibraryCollectionByKeyAsync(collectionKey, name) creates the extension, but it shows “No variables in this collection.” Its JSON export contains only parent/mode metadata—no token.
Interestingly, the Plugin API reports the inherited variable and correctly resolves its value to 8. We also successfully wrote an explicit override of 8 to the extension’s mode, but the collection still appeared empty.
We reproduced this with a minimal plugin, without logging, storage, or post-creation reads. Reopening the file and recreating the extension didn’t help.
Is there an additional initialization step required, or is this a bug in how API-created extensions are populated?
Environment: Figma desktop 126.9.10, macOS 26.7.0.
Many thanks in advance
R
