listAvailableShaders
Lists every shader available to the current file: shaders already in the file, shaders from subscribed libraries, and the user's owned shaders.
Signature
listAvailableShaders(): Promise<Shader[]>
Remarks
A shader applies either as an effect (node.effects) or as a fill (node.fills / node.strokes), depending on its type. Owned or subscribed shaders that aren't materialized in the file yet are returned with imported: false — call figma.importShaderById on the shader's id before applying it (this mirrors loadFontAsync for fonts).
const shaders = await figma.listAvailableShaders()
for (const shader of shaders) {
console.log(shader.name, shader.type, shader.imported)
}