tidy_target
Pin all subsequent commands to a chosen Figma file by name or key, preventing accidental writes when multiple files are connected. Clear the pin to switch targets.
Instructions
Pin every subsequent command to one connected Figma file. Accepts a file name (for example 'Design System') or a file key. Call with no arguments to see the current target, or clear: true to unpin. When several files are connected and no target is set, commands fail with a list of the files rather than guessing, because guessing means writing to the wrong file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | File name or key to pin. Names match exactly first, then case-insensitively. | |
| clear | No | Unpin the current target. |