get_descendants
Retrieve family tree descendants for a WikiTree person ID to explore genealogical relationships and access biography information across multiple generations.
Instructions
Retrieve descendants for a given person ID
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | WikiTree ID | |
| depth | No | Number of generations to retrieve | |
| bioFormat | No | ||
| fields | No | ||
| resolveRedirect | No |
Implementation Reference
- src/wikitree-server.ts:146-150 (handler)The handler implementation for the 'get_descendants' MCP tool. It extracts arguments and calls the underlying `wikitree.getDescendants` library function.
case "get_descendants": { const { key, depth, bioFormat, fields, resolveRedirect } = args as any; const descendants = await wikitree.getDescendants(key, { depth, bioFormat, fields, resolveRedirect }, options); return { content: [{ type: "text", text: JSON.stringify(descendants, null, 2) }] }; } - src/wikitree-server.ts:82-96 (schema)Registration and input schema definition for the 'get_descendants' tool.
{ name: "get_descendants", description: "Retrieve descendants for a given person ID", inputSchema: { type: "object", properties: { key: { type: "string", description: "WikiTree ID" }, depth: { type: "number", description: "Number of generations to retrieve" }, bioFormat: { type: "string", enum: ["wiki", "html", "both"] }, fields: { type: "array", items: { type: "string" } }, resolveRedirect: { type: "boolean" }, }, required: ["key"], }, },