figma_run_script
Execute arbitrary JavaScript in the Figma Plugin API context to read or modify the open file; large results are written to a file.
Instructions
Run arbitrary JavaScript in the plugin with the figma Plugin API global (top-level await, use return). Can read AND modify the open file. Large results are written to a file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Body of an async function; `figma` is in scope |