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
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>"
},
"name": "call_api"
}
}Input 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"], }, },