database create record
database_create_recordCreate a new RPG Maker MZ database record with the next ID, optionally from a template with field and collection overrides. Preview the validated change set, then commit to get the new ID.
Instructions
Create a database record with the next ID (max+1). Optionally start from a template (database_list_templates) and override fields (patch paths, e.g. "damage.formula"), collections (traits/effects/learnings/actions/dropItems/members) and noteTags. Returns the new ID.
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>",
"name": "<name>"
},
"name": "database_create_record"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Only to reuse a null slot or (with overwriteBlank) an unreferenced blank slot | |
| name | Yes | ||
| apply | No | Commit right after a successful preview (non-destructive operations only; needs --allow-write; warnings also need acknowledgeWarnings). Default false = preview only. | |
| fields | No | ||
| category | Yes | Database category | |
| noteTags | No | ||
| template | No | ||
| allowScript | No | true ONLY if the user explicitly asked to insert JavaScript (script commands, script conditions/operands, route scripts). | |
| collections | No | ||
| description | No | Optional description stored in the transaction log | |
| overwriteBlank | No | ||
| templateParams | No | ||
| acknowledgeWarnings | No | Accept validation warnings when apply=true. Review them with the user first. |