enquire-mcp API reference - v3.9.0-rc.4
    Preparing search index...

    Function archiveNote

    • Move a note into the archive folder, preserving every backlink.

      Thin convenience wrapper around renameNote: computes the destination path (<archive_folder>/<basename>, flattened — no source folder is preserved), then delegates. Leading folders of the source are stripped so Inbox/Foo.md archives to Archive/Foo.md, not Archive/Inbox/Foo.md.

      Parameters

      Returns Promise<RenameNoteResult>

      The same shape as renameNote.

      If path is missing, the vault is read-only, or rename fails (e.g., destination exists without overwrite).

      await archiveNote(vault, {
      path: "Inbox/old-idea.md",
      archive_folder: "Archive/2026"
      });