Set Cookies
set_cookiesInjects ad hoc authentication cookies into a specified tab to enable temporary access to protected pages without changing stored credentials.
Instructions
Set cookies (each: name/value/domain required). For ad-hoc auth injection.
Ex: set_cookies('t0', [{'name':'sid','value':'abc','domain':'.x.com','secure':True}]) → {"set":1}
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>",
"cookies": "<cookies>"
},
"name": "set_cookies"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tab_id | Yes | ||
| cookies | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||