Compose a workflow in a session
writ_browser_composeAuthors the workflow in an open session beyond a recording: named API functions (define_function with a flow, preferred in an API build, or a captured call's index or a lists payload; live-tested as defined; compile_function for an authenticated request), set_inputs, add_steps, test_function, remove_function, remove_step, list. A flow is built in small calls: define_function with its first request, then add_flow_step {function, step, at?} per step, each tested and answered with the step list; a set step's value is read as {ref:'vars.'}. Shapes: writ_help('writ_browser_compose').
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": {
"session_id": "<session_id>",
"operation": "<operation>"
},
"name": "writ_browser_compose"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| payload | No | The operation's arguments; add_flow_step: {function, step, at?}, remove_flow_step: {function, at}. | |
| operation | Yes | The action; add_flow_step, replace_flow_step and remove_flow_step change one step of a function's flow. | |
| session_id | Yes |