browser_set_local_storage
Set or update a localStorage key-value pair on the current page to persist data for later reads or tests; optionally target a specific partition by ID.
Instructions
Set a localStorage key-value pair on the current page.
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": {
"key": "<key>",
"value": "<value>"
},
"name": "browser_set_local_storage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | localStorage key to set | |
| value | Yes | Value to store (string) | |
| partition | No | Run this call in a partition from browser_partition (an id like "p1"). Leave it out for the default partition. An unknown or closed id is an error; the call is never sent to the default partition instead. |