Import many cookies at once
browser_import_cookiesSets multiple cookies in a single shared Firefox BiDi session and reports per-item failures, avoiding separate calls while only one active session is allowed.
Instructions
Set a batch of cookies in one call instead of one browser_set_cookie per cookie. Needed because Firefox allows only ONE active BiDi session, so an external script cannot open its own connection while this server holds the session — the batch has to run inside the shared session. Pass an array of {name, value, domain, path, expirySeconds, secure, httpOnly, sameSite}. Reports per-item failures instead of stopping on the first error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cookies | Yes | Cookies to set |