get_actors
Retrieve all actor data from your RPG Maker MZ/MV project to manage character assets and integrate game information.
Instructions
Get all actors from the RPG Maker MZ/MV project
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/actorTools.ts:7-10 (handler)The 'getActors' function in 'src/tools/actorTools.ts' retrieves all actors from the project by reading 'Actors.json'.
export async function getActors(projectPath: string): Promise<Actor[]> { const actorsPath = getDataPath(projectPath, 'Actors.json'); return await readJsonFile<Actor[]>(actorsPath); } - src/index.ts:99-106 (registration)The 'get_actors' tool definition is registered in the 'getToolDefinitions' method in 'src/index.ts'.
{ name: 'get_actors', description: 'Get all actors from the RPG Maker MZ/MV project', inputSchema: { type: 'object', properties: {}, }, }, - src/index.ts:658-659 (handler)The 'get_actors' tool handler in 'src/index.ts' calls 'actorTools.getActors' to execute the request.
case 'get_actors': return await actorTools.getActors(this.projectPath);