Get Person Tree
get_person_treeRetrieve a person's ancestors or descendants up to 10 generations deep, including names, kinship labels, and birth/death places. Use for genealogy research and family tree exploration.
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 every parent family, adoptive ones included; descendants follow the children of every family where the person is a parent, so relatives not linked that way are missing, and someone reached by two lines is listed once. generations counts steps from the person (1 = parents or children); each extra one costs another round of reads, so start with the default 3. 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. A missing person returns a not-found message.
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. |