Update database record
update_recordUpdate an RPG Maker MV database record: merge or replace fields while preserving the record's id based on its array position.
Instructions
Update a database record. By default the given fields are shallow-merged into the existing record; set merge=false to replace it entirely. The record's id always stays fixed to match its array position.
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": {
"type": "<type>",
"id": "<id>",
"data": "<data>"
},
"name": "update_record"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Record id (1-based) | |
| data | Yes | Fields to set (or the complete record when merge=false) | |
| type | Yes | Which database to access (e.g. actors, items, skills, troops, commonEvents) | |
| merge | No | Merge into existing record (true) or replace (false) |