save_browser_state
Save session cookies under a name so a future browser session can load them and resume without logging in again.
Instructions
Save the session's cookies under a name so a future session can load them with load_browser_state and resume without logging in again. Call it after a successful login (for example once await_human_takeover completes). Saving under an existing name replaces that state, so use a distinct name per site or account. Only cookies are saved, not localStorage, so sites that keep their login in localStorage won't resume. States are stored on disk as plaintext and include session credentials. Fails on a name with characters other than letters, digits, '.', '_' and '-'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name of the saved state: letters, digits, '.', '_' and '-' only. | |
| sessionId | Yes | The id returned by open_browser_session. Errors if no open session has it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| savedAt | Yes | ||
| cookieCount | Yes |