call_api
Directly access WikiTree's genealogical data API to retrieve family relationships, biographies, and ancestor information through customizable API calls.
Instructions
Call any WikiTree API endpoint directly
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | WikiTree API action (e.g., 'searchPerson') | |
| params | No | Parameters for the action |
Implementation Reference
- src/wikitree-server.ts:156-160 (handler)The handler for the 'call_api' tool, which uses 'wikitree.wikiTreeGet' to execute the request.
case "call_api": { const { action, params } = args as any; const result = await wikitree.wikiTreeGet({ action, ...params }, options); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] }; } - src/wikitree-server.ts:114-125 (schema)The schema definition for the 'call_api' tool, specifying 'action' and 'params' as inputs.
{ name: "call_api", description: "Call any WikiTree API endpoint directly", inputSchema: { type: "object", properties: { action: { type: "string", description: "WikiTree API action (e.g., 'searchPerson')" }, params: { type: "object", description: "Parameters for the action", additionalProperties: true }, }, required: ["action"], }, },