Skip to main content
Glama

Get motion (keyframe animation)

figma_get_motion_context
Read-only

Reads Figma timeline animation data—keyframe tracks, easing, timelines, cohorts, and motion plans—so agents can implement layer animations in code.

Instructions

The timeline animation of layers, for implementing it in code: per animated layer its keyframe tracks ({ field, keyframes: [{ t (s), value, easing }] }, the same strings figma_set_keyframes takes), animation styles, its top-level frame and timeline, plus timelineCohorts (layers that play together) and motionPlans (each frame's figma_set_motion_plan). topLevelFrameId is the frame on the page, found through the parents; a cohort is keyed by that frame and lists every timelineIds seen — a timeline id is never a node id. Inside an animated frame, address layers by the ids your create calls returned: an id read from a listing there can be temporary. This is Motion, not prototype interactions — those are figma_get_reactions. Defaults to the selection, then the page, and reads descendants: a screen never animates itself, its layers do. limits says what the Plugin API cannot tell (loop mode, pivot). Motion is a Figma beta: UNSUPPORTED means this account does not have it. Editors: Design only.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cursorNoThe nextCursor of a truncated call, unchanged.
nodeIdNoLayer or frame (id or Figma link). Defaults to the selection, then the current page.
sessionNoOptional sessionId or file name, to pick a Figma file when more than one is connected.
maxNodesNoLayers inspected per call. Default 500.
recursiveNoInclude descendants. Default true; false reads only the given layers (a page is always walked).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, so safety is covered, but the description adds meaningful context: returning keyframe strings that match figma_set_keyframes, the 'temporary id' warning for layers inside animated frames, limits on what the Plugin API cannot report (loop mode, pivot), the beta/UNSUPPORTED behavior, and 'Design only.' These are beyond what annotations provide and materially aid correct use.

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

Conciseness3/5

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

Information-dense but front-loaded with the core purpose first. However, it packs multiple unrelated points (id semantics, defaults, limits, beta status, editor restriction) into a single unbroken block, making it dense and harder to scan than a structured list.

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 read-only, no-output-schema tool with 5 params and complex return sub-structures (timelineCohorts, motionPlans), the description covers what it returns, how it targets nodes, id caveats, and environmental constraints. It omits detail on coordinate/units for keyframe values and animation styles, leaving minor gaps.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already documents each parameter including defaults. The description adds indirect semantics (address layers by ids your create calls returned; a timeline id is never a node id) but does not clearly map to specific parameters like recursive or maxNodes, so it remains baseline.

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 ('The timeline animation of layers') and describes the exact return shape (keyframe tracks, animation styles, timelineCohorts, motionPlans). It explicitly distinguishes itself from the sibling figma_get_reactions ('This is Motion, not prototype interactions — those are figma_get_reactions'), so an agent can route without opening schemas.

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 strong routing context: 'This is Motion, not prototype interactions — those are figma_get_reactions', and explains default targeting (selection, then page, reads descendants). It also adds a prerequisite lift note: 'a screen never animates itself, its layers do.' It lacks explicit when-not-to-use framing beyond the reactions contrast, but the context is clear.

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