rerecord
Start a background job to re-record one flow step with the agent, optionally using a new instruction, then verify it across multiple runs and re-pin it.
Instructions
Start a background job that re-records one step of a flow with the agent (optionally with a new instruction), then verifies it over several runs and re-pins it. Needs a model API key. Credentials: write each secret as one {{env:NAME}} marker ({{totp:NAME}} for a one-time code), exactly as written: the marker alone, never the value and never $NAME. NAME must be set in the environment the MCP server was started with. Never ask the user for a secret value. Returns a job_id: poll job_status.
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": "<flow>",
"step_id": "<step_id>"
},
"name": "rerecord"
}
}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. | |
| flow | Yes | Flow name, bundle or .flow.ts path. | |
| runs | No | Verification runs (--runs, default 2). | |
| 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. | |
| step_id | Yes | Step id, e.g. "03-create". | |
| instruction | No | Replacement instruction for the step (sent on stdin). Omit to keep the recorded one. |