recipe
Save repeatable multi-step browser workflows and run them later in one call with parameters; if a step breaks, complete it by hand and the saved workflow updates.
Instructions
Saved workflows any agent can run later in ONE call: a list of batch steps. After a multi-step task that will come up again, save it. Refs in steps become role+name locators automatically; write {{param}} in values to fill at run time. Steps act on the page only (no eval or upload; login fills saved passwords) and stay on the site of the recipe. Give it expect (a success check): when a step breaks, you finish the task by hand and Reins updates the recipe from what you did. A recipe runs on its own site, and other agents can run yours after the user approves it.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "recipe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tab | No | Tab id. Default: your own target tab (each agent session gets its own) | |
| name | No | Letters, digits, - and _ | |
| site | No | list/get: another site. Default: the site of your current tab | |
| steps | No | save: batch steps, e.g. [{tool:"click", find:{role:"button", name:"New issue"}}, {tool:"type", find:{role:"textbox", name:"Title"}, text:"{{title}}"}] | |
| action | No | done: finished a broken run by hand (only for recipes without expect); cancel: stop recording a fix | |
| expect | No | save: success check the run must end with: {text:"Account created"}, {text:"Loading", gone:true} or {url:"/dashboard"} | |
| params | No | run: values for the {{params}} | |
| browser | No | chrome, edge, ... (only when several browsers are connected) | |
| snapshot | No | Default returns a diff of what changed. true = full snapshot, false = nothing | |
| description | No | save: what it does, one line |