manage_storage
Read or set keys in localStorage or sessionStorage for the current page origin. Use it to inspect or modify JavaScript Web Storage during browser workflows.
Instructions
Get or set a key in localStorage or sessionStorage.
Use this tool when the browser workflow needs to inspect or modify JavaScript Web Storage belonging to the current page origin.
Tool selection: - Need localStorage/sessionStorage -> use this tool. - Need cookies or authentication cookies -> use manage_cookies. - Need arbitrary JavaScript or storage operations not covered here -> use run_javascript. - Need visible page content or HTML -> use get_content. - Need an element's HTML attributes -> use get_attributes.
When not to use: - Do not use this tool for HTTP cookies; use manage_cookies instead. - Do not use this tool for arbitrary page JavaScript; use run_javascript when a higher-level tool is insufficient. - Do not use this tool to inspect values from another origin; storage is scoped to the current page origin.
Args: key: Storage key to read or modify. value: Value to store when action="set". Required for set. storage: "local" for localStorage or "session" for sessionStorage. action: "get" to read the key or "set" to write the key.
Returns: The stored value for get, or a confirmation message for set.
Security: Web storage can contain authentication tokens, session identifiers, and other sensitive application state. Only use this tool with trusted sites and authorized MCP clients.
Notes: Storage belongs to the current page origin. Values from one website are not generally available to another origin.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| value | No | ||
| action | No | get | |
| storage | No | local |