Apply an upstream update to a clone
flow_apply_upstream_updateApply the update reviewed with get_upstream_update. Pass resolutions: exactly one entry per conflict — { path, contents } with the COMPLETE merged file, or { path, delete: true } when the file should not exist. Missing, unknown or ambiguous entries fail the whole call with nothing written (the plan is recomputed here, so re-review if the flow changed since). What it does, in order: saves the current files as a restorable "Before update" checkpoint, lands the merged tree (an open builder tab picks it up safely), records an "Update from upstream vX" checkpoint narrated in the builder chat, re-stamps the clone's update pointer so the next check compares against this release, provisions custom tables the update introduced (org-scoped names — the merged code already uses them), and raises a fill-in request for each missing secret (values never travel over MCP). If the review said adoptMode: true, call with adopt: true and NO resolutions to replace the files with the original's latest release wholesale — undoable via the safety checkpoint; confirm with your user first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | One-line summary for the builder chat. | |
| adopt | No | Only when the review reported adoptMode: true — replace the flow's files with the original's latest release wholesale. | |
| agent | No | ||
| flowId | Yes | ||
| hubToken | No | ||
| resolutions | No |