Skip to main content
Question

What are the available values for "documentAccess" in manifest.json?

  • March 19, 2024
  • 3 replies
  • 407 views

Kaitlyn_Ly

I am working on a plugin that is calling a function that requires access to other pages in the Figma file.

What are the allowed values for documentAccess in the manifest.json? Do I just put an empty string for it?

This topic has been closed for replies.

3 replies

tank666
  • 4873 replies
  • March 19, 2024

Currently, the documentAccess property only accepts dynamic-page value.

figma.com

Kaitlyn_Ly
  • Author
  • 1 reply
  • April 8, 2024

Does this mean that if a plugin requires access to other pages I would need to set documentAccess to dynamic-page and then update all usages of functions that are deprecated to use their async equivalent?
E.G.) getLocalPaintStylesgetLocalPaintStylesAsync.


tank666
  • 4873 replies
  • April 8, 2024

Yes, if you add a documentAccess field to your manifest, you will need to use async methods.