search_map_events
Find events on a specific RPG Maker map by searching for their names to locate and manage game interactions and triggers.
Instructions
Search events on a map by name
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mapId | Yes | ||
| searchTerm | Yes |
Implementation Reference
- src/tools/mapTools.ts:245-256 (handler)The handler function for search_map_events which fetches map events and filters them by a search term.
export async function searchMapEvents( projectPath: string, mapId: number, searchTerm: string ): Promise<MapEvent[]> { const events = await getMapEvents(projectPath, mapId); const lowerSearchTerm = searchTerm.toLowerCase(); return events.filter(event => event && event.name.toLowerCase().includes(lowerSearchTerm) ) as MapEvent[]; }