Manage auth/session state (cookies, storage, headers)
manage_sessionManage authenticated browsing sessions by setting cookies, localStorage, and headers, plus saving and loading snapshots to restore state after crashes.
Instructions
Reach authenticated pages. set adds cookies, localStorage seeds and extra headers to the persistent session, applied to the live context and replayed onto any future one so they survive a crash. save snapshots cookies + localStorage to .agent-eyes/sessions/.json (gitignored — it holds plaintext tokens); load restores a snapshot by recreating the context, after which you navigate to use it; clear drops everything.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Snapshot name under .agent-eyes/sessions/. Required for save and load. | |
| action | Yes | set = add cookies/localStorage/headers; clear = drop all state and rebuild a clean context; save = snapshot cookies + localStorage to disk; load = restore a snapshot, then navigate to use it. | |
| cookies | No | Cookies in Playwright addCookies shape; each needs url, or domain+path. | |
| headers | No | Extra headers for every request, merged into any already set. | |
| localStorage | No | localStorage to seed per origin, applied on the next navigation. |