list_allocated_ids
See which switch, variable, or common-event IDs are already in use and where they are referenced, so you can safely reuse or assign a fresh ID.
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.
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. |