resolve_conflicted_copy
Merges a conflicted copy back into its original note, records the merge as one undoable change, then deletes the copy. Requires the listed copy name, a token, and user confirmation.
Instructions
Merge a conflicted copy into the note it came from, then delete the copy, as
one recorded change (history_vault shows it; undo_last_vault_change undoes it).
copy is the file name list_conflicted_copies returned.
Ask the user first, every time: the merge changes the note. Show the user
what list_conflicted_copies reported, then call this with user_confirmed=true
only after they said yes. Without it nothing is written and an error says why.
For kind conflict, never choose a side yourself. Show the user both versions
of each clash and pass their answers: choices holds "a" (the kept file) or
"b" (the copy) for each clash, in order. The other kinds take no choices;
passing them is an error.
token is required, for every kind: pass the one list_conflicted_copies
returned for this copy. If either file changed since the listing, nothing is
written and an error says so: list again.
Returns {resolved, kind, 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": {
"copy": "<copy>"
},
"name": "resolve_conflicted_copy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| copy | Yes | ||
| token | No | ||
| choices | No | ||
| user_confirmed | No |