database update record
database_update_recordPatch selected fields of an RPG Maker MZ database record while leaving other fields untouched. Preview the change set with validation first, then apply to commit.
Instructions
Patch selected fields of a record (patch semantics; other fields untouched). Keys are field paths ("mpCost", "damage.formula" or {"damage": {"formula": ...}}); enums accept labels ("scope": "All Enemies"). For system use id 0 or omit id; system also accepts "switches.", "variables.", "terms.messages.", etc.
Preview-first: returns a change set (normalized + native diff, validation incl. reverse references). Pass apply=true to commit immediately when the preview is clean.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"category": "<category>",
"patch": "<patch>"
},
"name": "database_update_record"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| apply | No | Commit right after a successful preview (non-destructive operations only; needs --allow-write; warnings also need acknowledgeWarnings). Default false = preview only. | |
| patch | Yes | ||
| category | Yes | Database category | |
| allowScript | No | true ONLY if the user explicitly asked to insert JavaScript (script commands, script conditions/operands, route scripts). | |
| description | No | Optional description stored in the transaction log | |
| acknowledgeWarnings | No | Accept validation warnings when apply=true. Review them with the user first. |