create_plugin_command
Generate RPG Maker MZ plugin commands (event code 357) with validation warnings for unknown or disabled plugins, returning a command ready for event insertion.
Instructions
Build an RPG Maker MZ plugin command (event command code 357) for insertion into an event page via add_event_command. Validates against the plugins this project actually ships (scanned from their js/plugins/*.js @command/@arg annotations) merged over a small built-in allowlist — warn-by-default: an unknown plugin/command, a stray arg, or a plugin that is installed but disabled in js/plugins.js produces a warning but never blocks. Args are normalized to the editor’s string-valued shape. Read-only: returns { command, warnings? }, writes nothing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | Command arguments as { name: value }; values are stored as strings on disk | |
| label | No | Editor display label (parameters[2]); defaults to the command key | |
| indent | No | Indentation level in the target list (default 0) | |
| pluginName | Yes | Plugin filename without .js (event command parameters[0]) | |
| commandName | Yes | The command key the plugin registered (event command parameters[1]) |