rollback_import
Rolls back ONE import batch: deletes the tasks that this batch CREATED and that nobody has modified since. Keeps — and DECLARES with its reason — any task edited since the import, and any task still referenced (subtask or dependency) by a task that survives. Does NOT RESTORE what an onExisting: "update" batch modified. dryRun is TRUE by default: the call returns what would be deleted (an edit that arrived between this plan and the deletion is not detected). Resumable: at most 500 deletions per call; remaining says whether any are left — a new call with the same importId continues. DESTRUCTIVE and irreversible with dryRun: false. Each call that deletes leaves ONE aggregated event in the activity log (import.rolled_back: tasks deleted, tasks spared). In validation mode, a task that waits for a human ("to validate" / "to approve") is KEPT with the reason awaiting-human.
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": {
"importId": "<importId>"
},
"name": "rollback_import"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | Default TRUE: returns what would be deleted or kept, WITHOUT deleting anything. `false` to delete. | |
| importId | Yes | The batch to roll back (`list_imports`, or the `importId` returned by `import_tasks`). | |
| expectedProjectId | No | UUID of the project THIS call targets (overrides the session project). |