set_switch_name
Name a switch ID and automatically grow the project's switch list if needed, so every claimed ID is labelled and visible in the next editor session.
Instructions
Set a switch name. Grows the project's switch list if the id is past the end (padded to the editor's 20-slot block), so an id from next_free_id can always be labelled. Naming a switch as soon as you claim it is what makes it visible to the next session — see list_allocated_ids.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The name to assign | |
| dryRun | No | Preview only: return a diff of what would change without writing to disk. | |
| switchId | Yes | The 1-based switch ID |