browser_get_cookies
Lists cookie metadata (name, domain, path, expiry, flags) for a browser tab or URLs, excluding values by default; optionally includes values only for local development origins.
Instructions
Lists the cookies of the tab (or of urls) via CDP Network.getCookies: name, domain, path, expiry, httpOnly, secure, sameSite. Never their values by default (session secrets).
include_values=True: values included ONLY for a local development origin (localhost, 127.0.0.1, [::1], *.localhost, *.test: the tab, or each of the urls) and only for cookies of those domains; clear refusal for any other origin. An action, not a read: refused during the emergency stop and never retried automatically.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"tab_id": "<tab_id>"
},
"name": "browser_get_cookies"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| urls | No | ||
| tab_id | Yes | Your tab's id (from browser_new_tab, or a tab adopted with browser_adopt_tab). | |
| include_values | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| status | Yes | ||
| warning | No | Emergency stop hotkey not held, or similar notice | |
| untrusted_note | No | Page text that looks like instructions aimed at an AI |