conflicts_resolve
Resolve an unresolved sync conflict by choosing a deterministic strategy: keep-server, keep-mine, keep-both, or merged content. Updates the local file and may queue an outbound sync operation.
Instructions
Resolve one sync conflict using one of 4 deterministic strategies (spec 1.7). strategy: 'keep-server' = accept the remote version, overwrite the canonical file, delete the conflict copy. 'keep-mine' = keep the local version, re-assert it to the server (version bump + outbox op), delete the conflict copy. 'keep-both' = keep the canonical file AND permanently retain the conflict copy as its own newly-tracked file (no outbox op is dropped; the copy is registered with a fresh gid). 'merged' = use your own mergedContent (REQUIRED for this strategy) as the new canonical content, push it, delete the conflict copy. Only acts on an UNRESOLVED conflict for the gid; if none exists it is an error. Returns {success, gid, strategy, resolvedAt, outboxOpId?, newFileGid?}. This is a write operation: it mutates the local file and may enqueue an outbound op for sync.
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": {
"gid": "<gid>",
"strategy": "<strategy>"
},
"name": "conflicts_resolve"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gid | Yes | Global ID of the conflict to resolve, e.g. '104@4f9e1a8b3c7d2e0f' (as returned by conflicts_list). | |
| strategy | Yes | Resolution strategy. See tool description for each behavior. | |
| mergedContent | No | REQUIRED when strategy='merged': the full merged file content to write as the new canonical version. Ignored for all other strategies. |