save_state
Export the current session (cookies + localStorage) to a Playwright storageState JSON at path — a portable, reusable authenticated session.
Instructions
Export the current session (cookies + localStorage) to a Playwright
storageState JSON at path — a portable, reusable authenticated session.
Set for_chromium=True when a Chromium tool such as agent-browser will
load the file (agent-browser --state <path>). Non-secure SameSite=None
cookies then become Lax, which Chromium accepts.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "save_state"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| for_chromium | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |