The Plugin API currently cannot enumerate styles or variables available from libraries linked to the current file. Methods like getLocalTextStylesAsync() and the variable equivalents only return local items, so using linked-library assets requires the plugin to already know the asset keys in advance.
This creates a discovery gap for plugins that work with library content dynamically, especially AI-driven workflows that maintain design systems from code. A linked library may already be available in the file, but the plugin cannot inspect its contents unless the keys were prepared ahead of time or the assets are already applied somewhere in the document.
Request: add async Plugin API methods to enumerate styles and variables reachable from libraries linked to the current file, without requiring pre-known keys.
Use case: I maintain a Figma library that mirrors a shipped React design system and use AI-agent scripts to apply updates as code components change. With linked-library enumeration, the agent could discover newly added tokens and text styles automatically and keep the library in sync without manual key capture.
