storage.export
Exports browser localStorage, sessionStorage, and cookies to a JSON artifact, or emits a Playwright storageState file to start authenticated tests without replaying login.
Instructions
Dump localStorage, sessionStorage and cookies to a JSON artifact. format:"playwright" instead emits a real Playwright storageState file, which is what a test loads to start authenticated without replaying the login form.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "storage.export"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Default "browserd" (diagnostic dump). "playwright" emits a loadable storageState; note it has no sessionStorage field. | |
| save_path | No | ||
| target_id | No | Target handle (tgt_*). Omit for the active page. | |
| browser_id | No | Browser handle (br_*). Omit to use the only running browser, or auto-launch one. |