get_relation
Find the genealogical relationship between two people, returning the most direct path or all possible relationships with shared ancestors when requested.
Instructions
Compute a genealogical relationship between two people. Read-only.
Without all, returns the shortest/most direct relationship (relationship
string plus distances). With all=true, lists every possible relationship,
including common ancestors per path. Uses /relations// or
/relations///all with an optional depth cap on generations.
Args: handle1: First person handle. handle2: Second person handle. all: If true, return all possible relationships (and ancestors). depth: Maximum generations to search for a common ancestor (default 15, minimum 2). instance: Gramps Web base URL from get_instances; default = first.
Returns: dict: {"status", "url", "data": relationship(s)}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | ||
| depth | No | ||
| handle1 | Yes | ||
| handle2 | Yes | ||
| instance | No |