add_child_to_family
Link an existing person as a child of an existing family by adding a ChildRef and updating the child's parent-family list. Duplicate children are skipped.
Instructions
Add an existing person as a child of an existing family.
Links the child both ways: a ChildRef is added to the family and the family is added to the child's parent-family list. The child must already exist. Duplicate children are skipped.
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": {
"family": "<family>",
"child": "<child>"
},
"name": "add_child_to_family"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| frel | No | Relationship to the father, e.g. 'Birth', 'Adopted', 'Stepchild'. | Birth |
| mrel | No | Relationship to the mother, e.g. 'Birth', 'Adopted', 'Stepchild'. | Birth |
| child | Yes | Child person handle or gramps_id. | |
| family | Yes | Family handle or gramps_id (e.g. 'F0001'). | |
| allow_new_type | No | Accept a type that is neither a Gramps standard type nor one of the tree's custom types, creating it as a new custom type. Only when meant: a near-miss is refused with the closest names. |