Genealogy: Export GEDCOM
genealogy_export_gedcomExports Geneanet people or a pedigree to a GEDCOM 7.0 file, returning the file path and counts plus warnings for unreadable or omitted links.
Instructions
Write people to a GEDCOM 7.0 file in the export folder and return its path and counts {file, people, families, sources}, not its contents, with warnings when people could not be read or links point at people left out. Pass people (refs as the other tools return them) or a pedigree (a Geneanet person with its ancestors and descendants, read in one request). Each call fetches at most 40 people (people read earlier in this session cost nothing); the rest come back in remaining, and one file grows across calls when you pass the returned file with append: true. Only files this tool wrote are ever replaced. Pointing GENEALOGY_EXPORT_DIR at the folder granted in Filiation › Settings › MCP Server lets a Filiation agent read the file.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "genealogy_export_gedcom"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | A .ged file in the export folder: the `file` an earlier call returned, or a new name. Omitted, a new <date>-<surname>.ged is created. Given without `append`, a file this tool wrote is overwritten; any other existing file is refused. | |
| append | No | With `file`: keep the people already in it and add these, rewriting the whole file. Use it to finish an export whose `remaining` was not empty. | |
| detail | No | How much of each person to write: "summary" (vital events, occupation, families) or "full" (every event, notes, witnesses). Defaults to the detail the file was written at when appending, else "summary"; a different one re-renders the whole file. | |
| people | No | 1-500 refs to export, e.g. [{source:"geneanet", id:"maudrenel1:27"}]; key-form ids ("<tree>:<surname>/<given names>/<occurrence>") are resolved. Give this or `pedigree`. | |
| pedigree | No | A Geneanet person with ancestors and descendants (siblings left out), read with one graph request. Give this or `people`. |