search_items
Search RPG Maker MZ/MV game items by name or description to quickly locate specific assets in your project.
Instructions
Search items by name or description
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| searchTerm | Yes |
Implementation Reference
- src/tools/itemTools.ts:165-175 (handler)The implementation of the searchItems tool logic.
export async function searchItems(projectPath: string, searchTerm: string): Promise<Item[]> { const items = await getItems(projectPath); const lowerSearchTerm = searchTerm.toLowerCase(); return items.filter(item => item && ( item.name.toLowerCase().includes(lowerSearchTerm) || item.description.toLowerCase().includes(lowerSearchTerm) ) ); } - src/index.ts:352-362 (schema)The schema definition for the search_items tool registration.
{ name: 'search_items', description: 'Search items by name or description', inputSchema: { type: 'object', properties: { searchTerm: { type: 'string' }, }, required: ['searchTerm'], }, }, - src/index.ts:679-682 (registration)The registration/invocation handler in the main index file for the search_items tool.
return await itemTools.updateItem(this.projectPath, args.itemId, args.updates); case 'search_items': return await itemTools.searchItems(this.projectPath, args.searchTerm);