browser_get_cookies
Read session data for a tab via BrowserGPT extension: chrome.cookies (HttpOnly), optional localStorage/sessionStorage keys. Operator must approve the in-tab permission prompt. Use for session export / porting auth; do not paste values into chat.
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>",
"cookie_domains": "<cookie_domains>",
"confirmation_message": "<confirmation_message>"
},
"name": "browser_get_cookies"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tab_id | Yes | browser_tabs targetId | |
| cookie_names | No | Optional name filter | |
| cookie_domains | Yes | Domains for chrome.cookies.getAll (e.g. [".x.com", "x.com"]). Required. | |
| local_storage_keys | No | Optional localStorage key names to read on the target tab | |
| confirmation_message | Yes | Plain-language permission prompt for the operator (no secrets or template syntax). | |
| notification_message | No | Short user-facing sentence for this action if the follow-up reply fails. Plain text only; do not mention template syntax or variable names. | |
| session_storage_keys | No | Optional sessionStorage key names to read on the target tab |