Load session
load_sessionRestore cookies and localStorage from a saved session file to start a run already logged in. Navigates to the saved origin, reloads the page, and skips invalid cookies.
Instructions
Restore cookies and localStorage from a saved session file.
Use it at the start of a run to arrive already logged in. The page is first navigated to the saved origin so localStorage lands where it belongs, then reloaded so the restored cookies take effect.
Cookies that no longer apply are skipped rather than failing the whole restore, and the response reports how many were actually restored. Expired tokens still leave you logged out, so check the page afterwards.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | Session filename as shown by list_sessions, or an absolute path to a session JSON file. | |
| restore_pages | No | Also re-open the tabs that were open when the session was saved. Default false, which restores only cookies and localStorage. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |