chromium-cookies
Manage Chromium browser cookies: read, set, delete, or clear cookies including HttpOnly ones. Use to seed authenticated sessions or verify cookie state after flows.
Instructions
Read and write cookies of a Chromium (CDP) app (via the Network domain, so HttpOnly cookies are included).
action="get" (url?): list cookies, optionally restricted to given URLs (defaults to the active page).
action="set" (name, value, + url OR domain, optional path/secure/httpOnly/sameSite/expires): create or update a cookie.
action="delete" (name, + url/domain/path): remove a matching cookie.
action="clear": remove ALL browser cookies. Use when seeding an authenticated session before a flow (set the session cookie, then navigate) or asserting cookie state after one. Returns { cookies, count } for get, or a small status object ({ set } / { deleted } / { cleared }) otherwise. Fails if the device is not a Chromium (CDP) device, or set is missing name/value. Chromium-only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | get: restrict to these URLs (defaults to the active page). set/delete: scope the cookie by URL. | |
| name | No | set/delete: cookie name. | |
| path | No | set/delete: cookie path (default /). | |
| udid | Yes | Chromium device id from `list-devices` (e.g. `chromium-cdp-9222`). | |
| value | No | set: cookie value. | |
| action | Yes | get: read cookies. set: create/update a cookie. delete: remove a named cookie. clear: remove all browser cookies. | |
| domain | No | set/delete: scope the cookie by domain (alt to url). | |
| secure | No | set: mark Secure. | |
| expires | No | set: expiry as a Unix timestamp (seconds). Omit for a session cookie. | |
| httpOnly | No | set: mark HttpOnly. | |
| sameSite | No | set: SameSite policy. |