get_person
Retrieve detailed genealogical records from WikiTree by providing a person's ID to access biographies and family relationship data.
Instructions
Retrieve a single person record from WikiTree
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | WikiTree ID (e.g., 'Smith-1') | |
| bioFormat | No | Format of the biography | |
| fields | No | Fields to retrieve | |
| resolveRedirect | No | Whether to resolve redirects |
Implementation Reference
- src/wikitree-server.ts:136-140 (handler)The handler implementation for the "get_person" tool, which parses the request arguments and calls the wikitree library's getPerson method.
case "get_person": { const { key, bioFormat, fields, resolveRedirect } = args as any; const person = await wikitree.getPerson(key, { bioFormat, fields, resolveRedirect }, options); return { content: [{ type: "text", text: JSON.stringify(person, null, 2) }] }; } - src/wikitree-server.ts:53-66 (schema)The tool registration schema for "get_person", defining the expected input parameters.
{ name: "get_person", description: "Retrieve a single person record from WikiTree", inputSchema: { type: "object", properties: { key: { type: "string", description: "WikiTree ID (e.g., 'Smith-1')" }, bioFormat: { type: "string", enum: ["wiki", "html", "both"], description: "Format of the biography" }, fields: { type: "array", items: { type: "string" }, description: "Fields to retrieve" }, resolveRedirect: { type: "boolean", description: "Whether to resolve redirects" }, }, required: ["key"], }, },