Skip to main content

MEMORY_REVERT_TOOL

Constant MEMORY_REVERT_TOOL 

Source
pub(crate) const MEMORY_REVERT_TOOL: &str = r#"{
  "name": "MemoryRevert",
  "description": "Restore a memory file's live content to a prior recorded version. This does NOT delete history — it records a new version (source: \"revert\") whose content matches the target, same as `git revert`. Use it to undo a bad or fabricated memory write once you've confirmed via MemoryHistory/MemoryDiff which version to restore.",
  "inputSchema": {
    "type": "object",
    "properties": {
      "filename": { "type": "string", "description": "The memory file to revert" },
      "target_version_id": { "type": "string", "description": "The version id to restore (from MemoryHistory)" }
    },
    "required": ["filename", "target_version_id"]
  }
}"#;