Skip to main content
Glama

focus_frame

Zoom the Figma viewport to a specified frame using its ID so you can inspect or edit that design area in context.

Instructions

Zoom viewport to a frame.

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": {
      "frameId": "<frameId>"
    },
    "name": "focus_frame"
  }
}

Input Schema

NameRequiredDescriptionDefault
frameIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.7/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full behavioral burden and delivers almost none of it. It doesn't state whether the operation is read-only viewport change or mutates document/slide state, whether it requires the frame to exist or be on the current page, or what happens on failure. The word 'zoom' hints at a non-destructive view action but nothing confirms it.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Five words with zero waste and the action front-loaded, so structure is good. The brevity is under-specification rather than tightness, which keeps it from a 5, but nothing is redundant or buried.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a one-parameter viewport action with no output schema and no annotations, the description should still cover the identifier format and failure/precondition behavior. It supplies neither, so an agent knows the gist but not the operational details needed to call it confidently.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% and the single parameter frameId is never mentioned in the description. While 'a frame' loosely implies the parameter refers to a frame identifier, nothing clarifies whether it expects a node ID, page-scoped ID, or name, nor any format expectations.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb plus resource: 'Zoom viewport to a frame.' An agent can tell this is a viewport-navigation action rather than a content mutation, distinguishing it from siblings like delete_node or list_frames. It stops short of 5 because it doesn't articulate the observable effect (selection, centering, scroll behavior) that would fully separate it from other view actions.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance, no prerequisites, and no named alternatives. The description never says whether this is appropriate for programmatic navigation versus user-initiated focus, leaving the agent to infer usage from the name alone.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.