Get Ancestors
get_ancestorsLists a person's ancestors by generation—parents first, then grandparents and beyond—so you can trace direct lineage in a specified family tree.
Instructions
List a person's ancestors by generation (1 = parents, 2 = grandparents, ...).
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": {
"tree": "<tree>",
"person_id": "<person_id>"
},
"name": "get_ancestors"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tree | Yes | Stable tree UUID (preferred) or exact name, as shown by list_trees. | |
| person_id | Yes | Person UUID, as returned by add_people or find_people. | |
| generations | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |