fix_duplicate_uid
Assigns a new UID to the newer of two notes sharing a UID, leaving the older note and its relations unchanged; requires explicit user confirmation before rewriting.
Instructions
Give a note a new uid because an older note already holds its uid (lint_vault
reports the newer file as duplicate-uid, for example a file dropped in with
a copied header). path is the file lint_vault named.
Ask the user first, every time: it rewrites the uid line of that file. Show
the user both files, then call this with user_confirmed=true only after they
said yes. Without it nothing is written and an error says why. The
older node keeps the uid. Relations that point at the old uid mean the older
node, so none of them is rewritten. Recorded as one commit; undo_last_vault_change
undoes it. Refuses a file that is not the newer holder of a shared uid.
Returns {path, old_uid, new_uid, commit} or {error}.
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": {
"path": "<path>"
},
"name": "fix_duplicate_uid"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| user_confirmed | No |