Close a browser session
writ_browser_cancelClose an open browser session to stop execution time consumption. Auto-saves unsaved work as a workflow unless discard=true.
Instructions
Close an open browser session. Call this when the task is done and the user does not want to reuse it, or when abandoning a session — an open cloud browser keeps consuming execution time until it is closed. Work you never saved is NOT lost: a session with defined functions, or a recording that did more than visit pages, is auto-saved as a workflow first (the reply names it; inactive draft when it would not replay). Pass discard=true to close without keeping anything. A session bound to a build is settled by that auto-save, or marked cancelled.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| discard | No | true = throw the session's unsaved steps and functions away instead of auto-saving them. Default false. | |
| session_id | Yes |