figma_run_file
Executes a JavaScript file from disk inside an open Figma file, enabling large generated scripts to run without passing code through the conversation.
Instructions
Run a JavaScript file from disk in Figma, the same way as figma_run. Use it for large generated scripts (such as Scripter scripts from the handoff tool) so they do not travel through the conversation.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "figma_run_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| timeout_s | No | default 300 |