Save a session as a workflow
writ_browser_saveSave the open browser session as a clean, replayable workflow and close the browser, turning composed steps into runnable API functions and scheduled tasks.
Instructions
Save the open browser session as a clean, replayable workflow and close the browser. Everything you composed (writ_browser_compose) is materialized: named api functions become api_call steps with the auth function first, declared inputs become the workflow's parameters, explicit steps land at their position. The saved workflow is ACTIVE immediately: it runs on demand with writ_run_workflow (function_name calls one function) or its own run_ tool (writ_pin_workflow_tool) at zero AI cost, can be scheduled with writ_set_schedule, exposed as a REST endpoint with writ_expose_workflow_api, and documented at GET /api/v1/workflows/{id}/api-docs. A session bound to a build (writ_website_to_api guided) settles that build. The save is REFUSED, with the reasons, when a step or function references something no run could resolve — fix it in the session and save again. Only save once the task actually worked on the live page — verify first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Short workflow name (defaults to the goal). | |
| keep_open | No | Leave the browser open after saving (default false — saving closes it). | |
| session_id | Yes | ||
| description | No | ||
| allow_no_data | No | Save a workflow that yields NO data (navigation/actions only) on purpose. Off by default: a save with no data step and no defined function is REFUSED for an API build (define_function or an extract first) and WARNED for a task recording — a workflow like that runs green and returns nothing. |