Save session
save_sessionSave browser cookies, localStorage, and open URLs into a reusable session file to persist login state across runs, eliminating the need to log in again later.
Instructions
Save cookies, localStorage and open page URLs to a reusable file.
This is how you keep a login obtained interactively, so a later run can skip the login flow entirely — restore it with load_session.
Stored as JSON under ~/.nodriver-mcp/sessions/. That file holds live session tokens in plain text, so treat it as a credential.
Only the current page's origin contributes localStorage. For a login meant to survive without an explicit restore step, a persistent profile (create_profile + use_profile) is the sturdier option.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | A human-readable name for this session, e.g. "github-logged-in". It forms the filename, with a timestamp appended so repeated saves never overwrite one another. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |