manage_import
List available importers, import family tree files (Gramps XML, GEDCOM), or restore a backup to replace tree content. Preview changes with dry-run before applying.
Instructions
List importers or import a family tree file (Gramps XML, GEDCOM...). Writes: file, restore.
action=list returns every available importer (GET /importers/);
action=info describes one importer (GET /importers/);
action=file uploads file_path to /importers//file (raw body,
extension picks the importer) and returns the import counts;
action=restore resets the tree to match an uploaded Gramps backup via
/importers//file/restore (replaces all content; requires batch
delete permission). Use dry_run=true on file/restore to preview counts and
changes without touching the tree. Extensions: gramps, gpkg, ged, gedcom,
csv, etc., depending on installed plugins.
Args: action: "list", "info", "file" or "restore". extension: Importer extension (e.g. 'gramps' or 'ged'); required for info, file, restore. file_path: Local path of the file to upload (required for file/restore). dry_run: If true, compute counts/summary without importing (file/restore). instance: Gramps Web base URL from get_instances; default = first.
Returns: dict: {"status", "url", "data": importer list or import summary}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| dry_run | No | ||
| instance | No | ||
| extension | No | ||
| file_path | No |