get_map_events
Retrieve all event data from a specific RPG Maker MZ/MV map by providing the map ID, enabling game asset management and integration.
Instructions
Get all events from a specific map
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": {
"mapId": "<mapId>"
},
"name": "get_map_events"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mapId | Yes |
Implementation Reference
- src/tools/mapTools.ts:152-155 (handler)The implementation of getMapEvents which retrieves the events array from a given map file.
export async function getMapEvents(projectPath: string, mapId: number): Promise<(MapEvent | null)[]> { const map = await getMap(projectPath, mapId); return map.events; }