Run a TypeScript or JavaScript organize-imports mutation without saving the target buffer. useLatestChangedTick is current-buffer-only; useLatestSessionChangedTick works for explicit path targets or already-open explicit bufferId targets in the editor session.
AI agents invoke organize_imports to trigger actions in Vigentic MCP. What it does depends on the arguments the agent supplies, and its effects often reach beyond the immediate call — builds kicked off, notifications sent, workflows started.
The tool actively runs an LSP mutation operation that reorganizes import statements in a buffer. While it doesn't save the file, it modifies the in-memory buffer content. 'Run' and 'mutation' indicate execution of an operation with side effects beyond simple reads.
From the tool's definition Run a TypeScript or JavaScript organize-imports mutation without saving the target buffer
Attacks that exploit this kind of access
Run a TypeScript or JavaScript organize-imports mutation without saving the target buffer. useLatestChangedTick is current-buffer-only; useLatestSessionChangedTick works for explicit path targets or already-open explicit bufferId targets in the editor session. It is categorised as a Execute tool in the Vigentic MCP MCP Server, which means it can trigger actions or run processes. Use rate limits and argument validation.
Register the Vigentic MCP server in PolicyLayer and add a rule for organize_imports: 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 Vigentic MCP. Nothing to install.
organize_imports is a Execute tool with high risk. Execute tools should be rate-limited and have argument validation enabled.
Yes. Add a rate_limit block to the organize_imports 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 organize_imports. 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.
organize_imports is provided by the Vigentic MCP server (munozu/vigentic-mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
Every MCP server has a record like this.
Type a name, get the same breakdown: verified identity, auth posture, risk grade, capabilities, recommended policy.
Teams ship this data inside their own products. See what a licence covers →