ruyi_set_cookies
To set cookies on a browser tab, provide an array of cookie objects with required name and value, and optional domain, path, secure, httpOnly, sameSite, expiry. Specify the tab index.
Instructions
设置 cookies。传入 cookie 对象数组,每个对象需包含 name 和 value。可选字段:domain, path, secure, httpOnly, sameSite, expiry。
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": {
"cookies": "<cookies>"
},
"name": "ruyi_set_cookies"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cookies | Yes | Cookie 对象数组 [{name, value, domain?, path?, ...}] | |
| pageIdx | No | 标签页索引 |