Merge SmartUI Branch Baselines
smartui_merge_branch_baselineMerge the latest approved build of one branch into the latest approved build of another branch in the same SmartUI project, creating a build named merged-branch/-- on the target branch. The new build holds the screenshots of both builds (the source wins when a name exists in both) and is marked as the project baseline, replacing the current one; there is no tool to undo or delete it. The tool waits up to about 20 seconds for the merged build and returns merge_status (completed, running or initiated) with its build id; a merged build that ends in error or with zero screenshots is returned as a tool 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": {
"project_id": "<project_id>",
"source": "<source>",
"target": "<target>"
},
"name": "smartui_merge_branch_baseline"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Source branch to merge from. Its latest approved build is used. | |
| target | Yes | Target branch to merge into. Its latest approved build is used. | |
| project_id | Yes | SmartUI project id, from smartui_list_projects |