archive_record
Archive a record by its expected version to soft-delete it from search results while preserving audit history and links.
Instructions
Legacy direct write: returns REVIEW_REQUIRED; use prepare_write/commit_write. Soft-delete using the retrieved version; increment version and retain audit history and existing links. Archived records are excluded from ordinary search.
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": {
"record_id": "<record_id>",
"expected_version": "<expected_version>"
},
"name": "archive_record"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| record_id | Yes | ||
| expected_version | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||