set_parents
Assign a father and/or mother to a child in a GEDCOM file, reusing an existing family record or creating a new one. Simplifies linking parents to children in family trees.
Instructions
Make father/mother the parents of a child, reusing their existing family or creating one.
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": {
"child_id": "<child_id>"
},
"name": "set_parents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | GEDCOM file name (with or without .ged). Optional when only one file exists. | |
| child_id | Yes | Record id such as @I12@ | |
| father_id | No | ||
| mother_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Id of the record created or modified | |
| file | Yes | ||
| backup | No | Path of the .bak written before saving | |
| message | Yes |