detect_merge_conflicts
Compare two branches or design versions with a three-way diff before merging to show what combines cleanly and which conflicting changes need resolution.
Instructions
Three-way diff of two branches: what merges, and what must be decided.
Free door, tiered answer — Free: Branch · merge · cherry-pick · undo, on the designs you keep · Pro: Branch · merge · cherry-pick · undo, on every design · Business: ✓ · Enterprise: ✓.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "detect_merge_conflicts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| resolutions | No | Sketch basis only: answers to open questions, ``{item_id: choice}``, where a choice is ``prefer_branch_a``, ``prefer_branch_b``, ``apply_neither``, a branch's name or ``original``; ``{"*": choice}`` answers every item not named. On the mesh basis they are not used, and ``basis_note`` says so. | |
| source_lines | No | Mesh basis only: the ``[start_line, end_line]`` ranges the source side changed in the part's source code. With ``target_lines`` also given, overlapping ranges are reported as conflicts. | |
| target_lines | No | Mesh basis only: the ``[start_line, end_line]`` ranges the target side changed in the part's source code. | |
| source_branch_id | No | Id of the branch being merged in. Give it together with ``target_branch_id``; one without the other is refused. | |
| target_branch_id | No | Id of the branch being merged into. Give it together with ``source_branch_id``. | |
| source_version_id | No | Design version id of the side being merged in. Ignored when both branch ids are given (the source branch's head is used). | |
| target_version_id | No | Design version id of the side being merged into. Ignored when both branch ids are given (the target branch's head is used). | |
| ancestor_version_id | No | Design version id of the common ancestor. Optional: Kiln finds where the two sides really split in the version history and reads from there, saying so in ``basis_note`` when the id given differs. Used as the base only when the history holds no common ancestor. |