add_cookie
Add or update a cookie in a cookie jar with a key, value, domain, path, expiry, and security flags so API requests send the correct session and auth data.
Instructions
Add or update a cookie in a cookie jar.
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": {
"jar_id": "<jar_id>",
"key": "<key>",
"value": "<value>",
"domain": "<domain>"
},
"name": "add_cookie"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| path | No | / | |
| value | Yes | ||
| domain | Yes | ||
| jar_id | Yes | ||
| secure | No | ||
| expires | No | ISO date string | |
| http_only | No |