update_attribute
Set or remove one attribute on a Gramps object in place while preserving its citations, notes, and privacy. Use it to change or clear a specific attribute value.
Instructions
Set or remove ONE attribute on an object in place, keeping its citations, notes and privacy.
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": {
"object_type": "<object_type>",
"target": "<target>",
"name": "<name>"
},
"name": "update_attribute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name (type) of the attribute to change, e.g. 'Occupation'. | |
| match | No | Case-insensitive part of the current value, to pick one of several attributes of this name. Matching none, or several that differ, changes nothing and lists them. | |
| value | No | Its new value. Omit when removing it. | |
| remove | No | Remove the attribute. Its citations stay in the tree and are named. | |
| target | Yes | Handle or gramps_id of the object. | |
| object_type | Yes | Type of the object: 'person', 'event', 'family', 'media', 'source', 'citation'. |