rebuild
Delete every note and raw copy, then re-file all documents into their original folders; requires explicit confirmation because the operation is destructive and slow.
Instructions
Delete every note and file all the documents again from the memory's raw copies, into the same folders.
Call it only when the user explicitly asks to rebuild the whole memory; to fix one note use move_note or delete_note. Destructive and slow: every note, raw copy and archived version is deleted before the documents are filed again; the folders and their descriptions stay and none is opened. Without confirm=true it refuses and changes nothing. A rebuild that stops can be run again. Returns counts of the documents filed and the errors.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "rebuild"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | true to really do it: every note is deleted, then filed again |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||