Skip to main content
Glama

Set scroll and fixed layers

figma_set_scroll_behavior
Idempotent

Prototype scrolling for a frame: overflow (none, horizontal, vertical, both) and which direct children stay fixed while the rest scrolls (fixedNodeIds, bottom to top; [] fixes none).

Instructions

Prototype scrolling for a frame: overflow (none, horizontal, vertical, both) and which direct children stay fixed while the rest scrolls (fixedNodeIds, bottom to top; [] fixes none). Fixed layers are moved to the top of the layer list, so in an auto-layout frame each must be absolute first (figma_move_nodes positioning "absolute"), and an instance takes overflow only — Figma moves none of its layers, so fix them in its main component. This is presentation behaviour; to cut content off on the canvas use figma_set_clips_content. Editors: Design; unverified: FigJam, Slides.

Input Schema

NameRequiredDescriptionDefault
forceNoOverwrite on purpose. A write to a node someone changed after you last read it is refused (STALE); read it again and resend instead. Pass true only when the person said to overwrite their edit.
nodeIdYesA frame, component or instance (an instance: `overflow` only).
sessionNoOptional sessionId or file name, to pick a Figma file when more than one is connected.
overflowNo
fixedNodeIdsNoDirect children to fix (e.g. a nav bar), bottom to top.
idempotencyKeyNoCaller-owned retry key, ≤128 chars. Re-calling with the same key never executes twice: it returns the existing result, or waits for the op still in flight. Supply your own for anything large — if the MCP client times out (rather than the bridge), only a key you chose can be used to retry safely.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.3.0
    • addedInput schema / properties / force
      Added value: +{
      +  "description": "Overwrite on purpose. A write to a node someone changed after you last read it is refused (STALE); read it again and resend instead. Pass true only when the person said to overwrite their edit.",
      +  "type": "boolean"
      +}
  2. First observedv0.1.1

TDQS

A4.5/5.0
Behavior5/5

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

Adds substantial behaviour beyond the annotations: fixed layers are moved to the top of the layer list (an undocumented side effect), auto-layout frames require absolute positioning first, instances accept `overflow` only because Figma moves none of their layers, and the editor support matrix (Design; unverified FigJam, Slides). None of this is derivable from `readOnlyHint: false` / `idempotentHint: true`.

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?

Front-loaded with the core action and both parameters, then the caveats. Dense parenthetical clauses make it slightly harder to scan, but every sentence carries information an agent needs.

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

Completeness4/5

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

For a non-destructive mutation with annotations present and no output schema, the description covers side effects, preconditions and scope limits. It leaves one gap: whether omitting `overflow` or `fixedNodeIds` preserves existing prototype settings or clears them.

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

Parameters4/5

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

Schema coverage is 83%, so the schema already carries most parameter meaning and the baseline is 3. The description still adds value by enumerating the `overflow` values and clarifying that `fixedNodeIds` is bottom-to-top with `[]` fixing none, plus the instance restriction on which parameters apply.

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

Purpose5/5

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

States a specific verb+resource: sets prototype scrolling (`overflow`) and fixed-child behaviour on a frame. It also explicitly distinguishes itself from the nearest look-alike, `figma_set_clips_content`, so an agent can separate the two without reading either schema.

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

Usage Guidelines4/5

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

Gives concrete routing rules: use `figma_move_nodes` positioning "absolute" first inside auto-layout frames, and fix layers in the main component when targeting an instance. It names the clip-vs-scroll alternative but does not spell out a general 'use this when…' trigger or a when-not condition beyond the clips_content case.

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

Deploy Server

Other Tools