chrome-mcp
Tools

State and scripting

Cookies, storage, downloads and JavaScript evaluation.

Generated from @mehmoodqureshi/chrome-mcp 0.9.11. 4 tools.

get_cookies

Read cookies visible to the tab's URL (or a given url).

ArgumentTypeRequiredDescription
urlstringno
tabIdstringnoTab id (default: active tab)
{
  "tool": "get_cookies",
  "args": {
    "url": "<url>"
  }
}

storage

Read/write localStorage (or sessionStorage). op: get|set|remove|clear.

ArgumentTypeRequiredDescription
op"get" | "set" | "remove" | "clear"yes
keystringno
valuestringno
sessionbooleanno
tabIdstringnoTab id (default: active tab)
{
  "tool": "storage",
  "args": {
    "op": "get"
  }
}

download_file

Download a file by URL or from a link element.

ArgumentTypeRequiredDescription
urlstringno
selectorstringnoCSS selector (or pass ref)
refstringnoElement ref from a snapshot
suggestedNamestringno
tabIdstringnoTab id (default: active tab)
{
  "tool": "download_file",
  "args": {
    "url": "<url>"
  }
}

eval

Evaluate JavaScript in the page (disabled in safe-mode).

ArgumentTypeRequiredDescription
expressionstringyes
awaitPromisebooleanno
frameIdnumbernoFrame id from frames_list
allFramesbooleannoAct on the first match in ANY frame (the element may be in an iframe)
tabIdstringnoTab id (default: active tab)
{
  "tool": "eval",
  "args": {
    "expression": "<expression>"
  }
}

On this page