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).
| Argument | Type | Required | Description |
|---|---|---|---|
url | string | no | |
tabId | string | no | Tab id (default: active tab) |
{
"tool": "get_cookies",
"args": {
"url": "<url>"
}
}storage
Read/write localStorage (or sessionStorage). op: get|set|remove|clear.
| Argument | Type | Required | Description |
|---|---|---|---|
op | "get" | "set" | "remove" | "clear" | yes | |
key | string | no | |
value | string | no | |
session | boolean | no | |
tabId | string | no | Tab id (default: active tab) |
{
"tool": "storage",
"args": {
"op": "get"
}
}download_file
Download a file by URL or from a link element.
| Argument | Type | Required | Description |
|---|---|---|---|
url | string | no | |
selector | string | no | CSS selector (or pass ref) |
ref | string | no | Element ref from a snapshot |
suggestedName | string | no | |
tabId | string | no | Tab id (default: active tab) |
{
"tool": "download_file",
"args": {
"url": "<url>"
}
}eval
Evaluate JavaScript in the page (disabled in safe-mode).
| Argument | Type | Required | Description |
|---|---|---|---|
expression | string | yes | |
awaitPromise | boolean | no | |
frameId | number | no | Frame id from frames_list |
allFrames | boolean | no | Act on the first match in ANY frame (the element may be in an iframe) |
tabId | string | no | Tab id (default: active tab) |
{
"tool": "eval",
"args": {
"expression": "<expression>"
}
}