save_flow
Stops a learn session, saves recorded steps as a named flow, exports its pinned procedures to a bundle file, and closes the browser session.
Instructions
Stop a learn session, save what it recorded as a named flow, then export the flow with its pinned procedures to a bundle file (default .sitelooper/procedures.json in cwd). Closes the session's browser. Then call build_start with the flow name.
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": {
"name": "<name>"
},
"name": "save_flow"
}
}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. | |
| name | Yes | Flow name. | |
| bundle | No | Bundle path, relative to cwd or absolute (default .sitelooper/procedures.json). | |
| session | No | Browser session name (default "default"). Each session is its own browser and daemon. |