list_allocated_ids
Check which switch, variable, or common-event IDs are already allocated to prevent reuse conflicts. Pass an ID to see its label and every location where it is referenced.
Instructions
Show which switch / variable / common-event IDs are already spoken for, derived from the project's own JSON (never a hand-maintained list, which would drift the moment someone edited in the RPG Maker editor). An id counts as allocated if it is declared (a System.json label, a CommonEvents row) OR referenced anywhere — event page conditions and command lists, common events, troop pages, and Common Event skill/item effects. Use this before reusing an id, and pass id to answer "where is switch 23 actually used?" before touching it. Returns { count, highest, gaps, declaredCapacity, allocated[], coverage }. Read-only. To claim a fresh id instead, use next_free_id.
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": {
"type": "<type>"
},
"name": "list_allocated_ids"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Report just this id — whether it is allocated, its label, and every place it is referenced. Omitted = the whole namespace. | |
| type | Yes | Which id namespace: switch, variable, or common_event. Database rows (actors, items, …) are not here — create_*/batch_create assign those ids, and list_names shows what exists. |