Save session
save_sessionPersist cookies, localStorage, and open page URLs to a reusable JSON file so a later run can restore the login and skip authentication.
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. | |
| browser | No | Which browser to act on. Each name is an independent Chrome, created on first use. Omit for the shared default; parallel agents each need their own name. | default |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |