update_skill
Modify skill properties in RPG Maker MZ/MV projects by specifying skill ID and desired changes to attributes, effects, or parameters.
Instructions
Update a skill's properties
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| skillId | Yes | The skill ID to update | |
| updates | Yes | Properties to update |
Implementation Reference
- src/tools/skillTools.ts:101-119 (handler)The implementation of the update_skill tool, which finds a skill by ID and updates its properties.
export async function updateSkill( projectPath: string, skillId: number, updates: Partial<Skill> ): Promise<Skill> { const skills = await getSkills(projectPath); const skillIndex = skills.findIndex(skill => skill && skill.id === skillId); if (skillIndex === -1) { throw new Error(`Skill with ID ${skillId} not found`); } skills[skillIndex] = { ...skills[skillIndex], ...updates }; const skillsPath = getDataPath(projectPath, 'Skills.json'); await writeJsonFile(skillsPath, skills); return skills[skillIndex]; }