set_switch_name
Assign descriptive names to RPG Maker switches to improve event organization and readability in game development projects.
Instructions
Set a switch name
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 |
|---|---|---|---|
| switchId | Yes | ||
| name | Yes |
Implementation Reference
- src/tools/systemTools.ts:62-72 (handler)The handler function that sets the name of a switch in the System.json file.
export async function setSwitchName( projectPath: string, switchId: number, name: string ): Promise<void> { const system = await getSystem(projectPath); system.switches[switchId] = name; const systemPath = getDataPath(projectPath, 'System.json'); await writeJsonFile(systemPath, system); }