Undo one vault import batch
undo_importUndo this batch's claim on imported notes. A created note stays live while a later batch still asserts the same bytes; undoing the last such batch retires it. Preserves pre-existing files, conflicts and later edits; reports preserved paths and the re-assertion reason. Uses existing retirement journal and trash. Batch receipts persist across restarts and are tenant-local.
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": {
"batchId": "<batchId>"
},
"name": "undo_import"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| batchId | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| batchId | Yes | ||
| retired | No | ||
| preserved | No | ||
| alreadyUndone | No | ||
| preservedReasons | No |