repair_propose
Replay a compiled .flow.ts against the app to repair drifted steps, staging a checked proposal JSON for review without rewriting the spec. Poll job_status, then apply with repair_apply.
Instructions
Start a background job that replays a compiled .flow.ts against the app, repairs drifted steps and stages a checked candidate as a proposal file for review (repair --propose); never rewrites the spec. Returns a job_id: poll job_status. Apply a good proposal with repair_apply.
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": {
"flow_file": "<flow_file>",
"proposal_file": "<proposal_file>"
},
"name": "repair_propose"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Project directory (absolute) the command runs in; sitelooper.config.json is found from here. Default: the server's working directory. | |
| vars | No | Flow variables, passed as repeated --var k=v. "{n}" in a value is replaced per run with a fresh value. Never a secret: use {{env:NAME}} markers in instructions instead. | |
| flow_file | Yes | Path to the .flow.ts file. | |
| proposal_file | Yes | Where to write the proposal JSON (must not exist yet). |