import_state
Import browser state from JSON files to create new contexts with saved cookies and storage for debugging and reverse engineering tasks.
Instructions
Import browser state from a JSON file by creating a new context.
Creates a new browser context with the saved state (cookies, localStorage, sessionStorage) and switches to it.
Args: state_path: Path to the state JSON file (exported by export_state).
Returns: dict with status and the new context name.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state_path | Yes |