get_weapons
Retrieve all weapon data from RPG Maker MZ/MV projects to manage game assets and integrate with MCP-compatible clients for game development.
Instructions
Get all weapons from the project
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/itemTools.ts:15-18 (handler)The handler function that retrieves all weapons by reading Weapons.json from the project path.
export async function getWeapons(projectPath: string): Promise<Weapon[]> { const weaponsPath = getDataPath(projectPath, 'Weapons.json'); return await readJsonFile<Weapon[]>(weaponsPath); } - src/index.ts:188-194 (registration)The MCP tool registration for 'get_weapons'.
name: 'get_weapons', description: 'Get all weapons from the project', inputSchema: { type: 'object', properties: {}, }, }, - src/index.ts:672-673 (handler)The tool invocation mapping that calls the getWeapons handler.
case 'get_weapons': return await itemTools.getWeapons(this.projectPath);