Backup, export, import, app info, or metrics
manage_systemInspect Trilium app/database versions and metrics, create or replace backups, and export/import note subtrees as ZIP archives for maintenance and migration.
Instructions
Trilium system operations, selected by "action":
"app_info" (read-only): Trilium app/database/clipper versions.
"metrics" (read-only): note, attachment, revision, branch and attribute counts and per-type breakdowns. Needs a Trilium version with /etapi/metrics.
"backup": write backup-.db to Trilium's data directory, replacing a backup with the same name.
"export": export a subtree as a ZIP (html, markdown or share format), returned as an embedded resource for the user to save (max 10 MB). You cannot read the ZIP contents — to read notes use get_note.
"import": import a base64 ZIP (e.g. a previous export) under noteId; returns the created note.
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": "manage_system"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | action="import": the ZIP archive, base64-encoded. Only practical for small archives. | |
| action | Yes | System action to perform; see the tool description for each action. | |
| format | No | action="export": "html" (default), "markdown", or "share" (static HTML site layout). | html |
| noteId | No | action="export": root of the subtree to export. action="import": parent note to import under. | |
| backupName | No | action="backup": backup file identifier (letters, digits, - and _); writes backup-<name>.db. |