set_cookies
Write cookies into the live browser profile using CDP, handling HttpOnly and cross-path cookies. If CDP is unavailable, falls back to document.cookie and reports cookies that couldn't carry HttpOnly.
Instructions
Write cookies into the real browser profile. Takes one cookie object or a list (JSON text is accepted): name is required, plus optional value/url/domain/path/expires (Unix seconds)/httpOnly/secure/sameSite. Uses CDP Network.setCookie so HttpOnly and cross-path cookies work; falls back to document.cookie only if CDP is unavailable, and then says which cookies could not carry HttpOnly. Cookies with neither url nor domain are scoped to the current page.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tab_id | No | ||
| cookies | Yes | ||
| timeout | No | ||
| session_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||