Dea DardanicaDocumentation
Network, events, and healthRead Markdown

get_cookies

Read this tab's cookies, including HttpOnly login cookies that page scripts (execute_js) cannot see. By default the cookies sent to the tab's current page; pass url or domain for another site, name for one cookie, all:true for the tab's whole store. Use it to check which account the tab is signed in as, or to copy a login to set_cookies in another tab. A private tab has its own separate cookies.

Example#

Call this MCP tool with the argument object below. Replace illustrative IDs, selectors, local paths, and project URLs with values observed in your session.

json
{
  "name": "session"
}

Result#

Returns the cookies with name, value, domain, path, expiry (or session), and the HttpOnly, Secure and SameSite flags, plus the scope that was read.

Results arrive in MCP content blocks. Most structured results are JSON in text blocks; image tools can include image blocks. Handle errors and partial or truncated data. No formal output schema is declared for this tool.

Parameters#

get_cookies — table 1
ParameterTypeRequiredDescription
urlstringNoCookies sent to this address; default the tab's page
domainstringNoCookies for this domain and its subdomains
namestringNoOnly the cookie with this name
allbooleanNoEvery cookie in this tab's store (up to 300)
tabstringNoTab name or id in your workspace; does not change the visible tab. minLength: 1

Full input schema#

The schema includes nested shapes and constraints. Additional semantic constraints can apply at runtime; read the description and usage notes.

json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "url": {
      "description": "Cookies sent to this address; default the tab's page",
      "type": "string",
      "format": "uri"
    },
    "domain": {
      "description": "Cookies for this domain and its subdomains",
      "type": "string"
    },
    "name": {
      "description": "Only the cookie with this name",
      "type": "string"
    },
    "all": {
      "description": "Every cookie in this tab's store (up to 300)",
      "type": "boolean"
    },
    "tab": {
      "description": "Tab name or id in your workspace; does not change the visible tab.",
      "type": "string",
      "minLength": 1
    }
  },
  "additionalProperties": false
}

Reference conventions · Agent operating guide · Troubleshooting