figma-design
Figma Design Skill
Interact with Figma design files via the web browser using the Figma Plugin API.
Instructions
-
Use the
chrome-devtools_navigate_pagetool to go to Figma's website. Then, prompt the user to log in to their Figma account if they are not already logged in and open a specific design file. -
Once the user has opened the design file, use
chrome-devtools_evaluate_scriptto confirm that you have access to thefigmaglobal object, which indicates that you are within the Figma environment. If you do not have access, inform the user that they need to open a Figma design file or see the Troubleshooting section below. -
After confirming access, execute the user's query using
chrome-devtools_evaluate_scriptto run JavaScript code that interacts with the Figma Plugin API. You can perform tasks such as creating shapes, modifying properties, or extracting information from the design file.
Rules of Engagement
- Always explain in plain English what you are about to do. Assume that the user cannot read code.
- Do not try alternative solutions like using the REST API or manually interacting with the Figma UI.