Get Person Tree
get_person_treeRetrieve a person's ancestors or descendants up to 10 generations deep, including generation, kinship labels, name, ID, and birth/death with places.
Instructions
List a person's ancestors or descendants up to 10 generations deep: one row per relative with the generation, an optional kinship label (Father's mother, Granddaughter), name, Gramps ID, birth and death with places, and handle. Ancestors follow the person's parent families; descendants follow the children of families where the person is a parent, so relatives not linked that way are missing. For how two given people are related use get_relations; for dated events around one person use get_timeline; for one full record use get_object.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| person | Yes | The person to start from. Handle or Gramps ID (e.g. I0001), resolved automatically; find it with search or list_objects. | |
| direction | Yes | ancestors (parents, grandparents, …) or descendants (children, grandchildren, …). | |
| generations | No | How many generations to walk, 1–10 (default 3); other values are clamped. | |
| kinshipLabels | No | When true (default), add kinship text such as Father's mother or Granddaughter. When false, show only generation numbers. |