browser_set_local_storage
Writes a single localStorage key-value pair in the current browser page, replacing any existing value for that key to persist session data or test app state.
Instructions
Write one localStorage value in the current page context. An existing value under the same key is replaced.
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": {
"session_id": "<session_id>",
"key": "<key>",
"value": "<value>"
},
"name": "browser_set_local_storage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Storage key to write | |
| value | Yes | Value to store | |
| session_id | Yes | Session ID returned by browser_navigate |