oc_context_export
Export cookies, localStorage, and HTTP auth from a tab as a tamper-detectable plaintext envelope to transfer signed-in state between browser instances.
Instructions
Export the active tab's auth-relevant state (cookies + local/sessionStorage + optional UA/viewport/HTTP-auth) as a portable plaintext envelope. The envelope is byte-deterministic modulo capturedAt and carries a SHA-256 integrity hash for tamper detection on import. SECURITY: the envelope is plaintext by design — the host MUST treat it as a secret. Pair with oc_context_import on a fresh openchrome instance to carry signed-in state across hosts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tabId | Yes | REQUIRED Tab ID to export from. | |
| origin | No | Explicit origin to record in the envelope. Default: active tab origin. | |
| includeStorage | No | Capture localStorage + sessionStorage. Default: true. | |
| includeHttpAuth | No | Capture HTTP Basic auth credentials supplied via `http_auth set`. Default: false (rarely safe to round-trip). | |
| captureUA | No | Capture navigator.userAgent. Default: false. |