Save the flow you just drove, as a replayable recipe
qa_recipe_saveSaves a completed browser flow as an editable JSON recipe on this machine, so future runs replay its fields, uploads, and clicks instead of rediscovering the steps.
Instructions
Write what you just did on this page to a JSON recipe on this machine, so the NEXT run replays it instead of rediscovering it. Call it with just a name and it builds the recipe from what this session actually filled: the fields (by accessible name, with the cssPath as fallback), the uploads, and the control you clicked to move on — folded into steps, since a click after a group of fills is what ends a step of a wizard. Pass steps yourself to write a recipe by hand, or to correct one. Do this at the END of any flow that took more than a few calls — a long multi-step form, a signup, a wizard — and say so in one line to the human: the recipe is a file they own, at the path this returns, editable and deletable by hand. Local only: writes a file, touches no browser, needs no consent.
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": "qa_recipe_save"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | The flow's starting URL. Defaults to the page of the last snapshot; used to scope the journal to this host and to remind you where to start. | |
| name | Yes | A name you will recognise later, e.g. "new initiative form" — the file is named after it | |
| tags | No | Labels for picking a subset later — ["smoke"], ["billing","regression"]. A suite can be run by tag instead of by name. | |
| notes | No | Anything the replay should know that the fields do not say — a precondition, a role to be signed in as, a step that only appears sometimes | |
| steps | No | Write the steps explicitly instead of deriving them from this session | |
| project | No | Which product or client this flow belongs to. It becomes a FOLDER, and it is what qa_suite_run groups by. Host is not enough on its own: staging and production are two hosts and one project, and two products behind one domain are one host and two projects. |