set_switch_name
Assign a name to a switch ID, expanding the project's switch list to accommodate new IDs. Label switches as soon as you claim them to keep them visible in future sessions.
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 |