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.
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": {
"switchId": "<switchId>",
"name": "<name>"
},
"name": "set_switch_name"
}
}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 |