Read or clear cookies
cookiesRetrieve or delete a tab's stored session data, including HTTP-only values, to inspect active sessions or clear domain-specific or all browser state.
Instructions
Get or clear cookies for the tab (CDP). 'get' returns the tab's cookies including values — incl. httpOnly that page JS can't read (group-gated). 'clear' deletes all of the tab's cookies, or only those whose domain matches domain; pass domain='*' to clear ALL browser cookies.
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": {
"tabId": "<tabId>",
"action": "<action>"
},
"name": "cookies"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tabId | Yes | Target tab ID (must be in the MCP group) | |
| action | Yes | get or clear | |
| domain | No | Limit clear to this domain, or '*' for all browser cookies |