viewport_focus_object
Focus the viewport on a specific object (zoom to fit).
This record as markdown: /tools/dwgx-blender-copilot/viewport-focus-object.md
What viewport_focus_object does on Blender Copilot MCP Server
AI agents invoke viewport_focus_object to trigger actions in Blender Copilot MCP Server. 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.
Why viewport_focus_object is rated High
This tool triggers a viewport action in Blender (zooming/focusing the camera view), which is an external application operation rather than a simple data read. It doesn't read, write, or delete data, but executes a UI/viewport action in Blender. Severity is low as misuse has minimal blast radius.
From the tool's definition Focus the viewport on a specific object (zoom to fit)
Attacks that exploit this kind of access
The rule that runs viewport_focus_object safely
PolicyLayer is an MCP gateway: it sits between your AI agents and Blender Copilot MCP Server, and checks every tool call against a rule you set before the call runs. Nothing changes on the server itself. For viewport_focus_object, this is the rule to start with:
viewport_focus_object stays usable, but rate-capped: a runaway agent can't fire it dozens of times a minute. Everything else on the server is denied unless you say otherwise.
The button opens the PolicyLayer dashboard: create your workspace, connect Blender Copilot MCP Server, apply this rule, and every viewport_focus_object call is checked against it from then on.
Questions about viewport_focus_object
Focus the viewport on a specific object (zoom to fit). It is categorised as a Execute tool in the Blender Copilot MCP Server MCP Server, which means it can trigger actions or run processes. Use rate limits and argument validation.
Register the Blender Copilot MCP Server MCP server in PolicyLayer and add a rule for viewport_focus_object: 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 Blender Copilot MCP Server. Nothing to install.
viewport_focus_object 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 viewport_focus_object 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 viewport_focus_object. 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.
viewport_focus_object is provided by the Blender Copilot MCP Server MCP server (dwgx/blender-copilot). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
More on Blender Copilot MCP Server, and thousands of servers like it.
Across the catalogue