Read or modify browser storage in a tab.
AI agents use storage to create or update resources in Nextjs Agent — usually the action step of a workflow, after the agent has gathered context. Every call changes real data in your Nextjs Agent environment.
This tool permits modification of browser-side persistent data. While the changes are reversible (storage can be cleared or reset), an AI agent could inject malicious session tokens, modify authentication state, or inject data that alters application behavior. This is a Write operation rather than Destructive because the data is not permanently deleted—it is modified and could theoretically be reverted.
From the tool's definition Tool description states 'Read or modify browser storage in a tab' — the word 'modify' indicates write capability. Browser storage (localStorage, sessionStorage, cookies) can be altered reversibly.
Attacks that exploit this kind of access
Read or modify browser storage in a tab. It is categorised as a Write tool in the Nextjs Agent MCP Server, which means it can create or modify data. Consider rate limits to prevent runaway writes.
Register the Nextjs Agent MCP server in PolicyLayer and add a rule for storage: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Nextjs Agent. Nothing to install.
storage is a Write tool with medium risk. Write tools should be rate-limited to prevent accidental bulk modifications.
Yes. Add a rate_limit block to the storage rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for storage. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
storage is provided by the Nextjs Agent MCP server (zohaib3249/nextjs-agent-mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
storage is one line of Nextjs Agent's registry record.
The record carries the whole server: verified identity, auth posture, risk grade, every tool classified, recommended policy — re-checked continuously.
Teams ship this data inside their own products. See what a licence covers →