move_note
Move or rename a note in your vault while automatically updating internal references and backlinks. Optionally rewrite all incoming wikilinks to reflect the new path.
Instructions
Move or rename a note inside the vault. Requires a readwrite API key.
Updates notes_metadata.file_path for the moved note and note_links.target_path
rows whose stored target matched the old path. Backlinks via target_note_id
keep working without rewriting source notes (the moved note's id is unchanged).
With rewrite_links=True, also opens every source note that linked to this
note and rewrites the link title in-place: [[Old]] → [[New]],
[[Old|alias]] → [[New|alias]], [[Old#anchor]] → [[New#anchor]],
![[Old]] → ![[New]], and path-style [[folder/Old]] → [[new/folder/New]].
Aliases and anchors are preserved; only the title portion is rewritten.
Writes are atomic. See get_vault_guide for vault folder conventions.
Args: from_path: Vault-relative path of the existing note. to_path: Vault-relative path of the destination. Must not exist. Parent directories are created automatically. rewrite_links: If True, also rewrite incoming wikilinks and embeds in source notes. Off by default — opting in is destructive (it modifies other notes' bodies).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from_path | Yes | ||
| to_path | Yes | ||
| rewrite_links | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |