use_figma — Figma Plugin API Skill for Slides
This skill contains Slides-specific context for the
MCP tool. The
figma-use skill provides foundational context for plugin API execution via MCP as well as the full Figma plugin API for more advanced use-cases that are not described here.
Always pass skillNames: "figma-use-slides"
when calling for Slides operations. This is a logging parameter used to track skill usage — it does not affect execution.
Critical Rules (Slides-specific)
- Newly created Slides files have a default light theme. When a Slides file is created via , a default light theme is automatically initialized. This theme is structural scaffolding — you should overwrite the theme's color variables and text styles with your own design direction for the deck you're building. Do not rely on or be influenced by the default light theme tokens.
- MUST to the slide BEFORE setting / position. Slides have an internal coordinate origin; positioning before parenting causes silent offsets that produce broken/overlapping layouts. Do all property configuration after appending for safety. See slide-gotchas.md.
- SLIDE_GRID and SLIDE_ROW are opaque nodes — do not access , , or layout properties on them. Only nodes (type ) extend . Exception: IS settable — that's how plugins rename slide sections (e.g. ). See slide-lifecycle.md.
- does NOT work on Slides files. Use read-only scripts for validation. Return created node positions in output and verify no overlapping bounding boxes.
- Do NOT call in Slides. It throws
TypeError: figma.createPage no such property 'createPage' on the figma global object
— is a Design-file API only (); the Slides URL is . Use the slide grid ( / / ) to organize deck structure instead — see slide-lifecycle.md and slide-grid.md.
Design Thinking
Not every task needs the same depth of design thinking. Before doing anything, identify which gear you're in:
- Content/property edits — changing text, swapping a color, updating a number, fixing alignment, resizing an element. Skip design thinking. Just make the change and match what's already there.
- Structural additions — adding slides, reworking a section's layout, changing the deck's color palette, introducing a new visual element. Design thinking applies, but in inherit mode: the existing deck is your design language. Inspect it, match its palette, type, spatial habits, and motifs. Extend the deck's existing character rather than reinventing it.
- New deck creation — building a deck from scratch or from a blank file. Full design thinking applies as described below.
For structural additions to existing decks: run the inspection scripts (below) and take screenshots before making changes. The answers to "what color story?" and "what type treatment?" are already in the file — your job is to read them and stay consistent. The design principles in slide-design.md describe what you're matching, not what you're choosing.
New deck design process
Before writing any Plugin API code for a new deck, decide what it should feel like. Figma users have high visual expectations — a deck that looks like it came out of a generic template generator will stand out for the wrong reasons.
- Read the brief. What is the deck communicating, and to whom? An investor pitch, a team retrospective, a product launch, and a technical deep-dive all demand different visual treatments. The design should be inseparable from the content.
- Check for a design language. Before inventing anything, look at what the user already gave you. Brand guidelines in the prompt — color palettes, typography specs, logo rules, tone descriptors — are design decisions that have already been made. A link to a reference Figma file is a design language you should study, not glance at. The more specific the user's inputs, the less you should invent on your own. When the user provides a reference, your job shifts from designer to interpreter: extract the design language and apply it faithfully to new content.
- Take a position — on what's left. If the user supplied a full brand system, your creative latitude is in layout, pacing, and composition — not in color or type. If they gave you a single reference slide for inspiration, you have more room but should still echo its character. If they gave you nothing, then you own every decision — choose a color story, a type treatment, a way of organizing space, and follow through on it across every slide. A deck with a clear perspective (even a quiet one) always reads better than one that plays it safe on every decision. The scope of "take a position" scales inversely with what the user provided.
- Give it a signature. Every good deck has at least one element you'd recognize if you saw it out of context: a distinctive palette, an unexpected layout cadence, a recurring shape language. When working from brand guidelines, the signature should come from that brand language — amplify something that's already there rather than adding something foreign. When designing from scratch, decide what the signature is before you start building.
Reading a reference file
When the user provides a link to a Figma file as a reference, study it before designing anything. What you extract depends on what the file is:
- A Slides file: does not work on Slides files. Use to capture individual slides for visual reference, and with the reference file's to run read-only scripts that extract theme variables, color palettes, font choices, and layout patterns.
- A Design file: gives you comprehensive design data — colors, typography, layout structure. gives you visual reference. Use both.
What to look for in a reference file: the color palette (which hue leads, what the accent is, how dark/light backgrounds are used), the type choices (families, weights, how hierarchy is handled), the spatial habits (where content anchors, how much whitespace, whether things bleed off edges), and any recurring motifs (shapes, line treatments, decorative elements). These are the decisions you inherit — everything else is yours.
How closely to follow the reference depends on what the user asked for. "Make it look like this" means replicate the design language with new content. "Use this for inspiration" means echo the character but make it your own. "Here's our brand deck" means extract the brand system and apply it consistently. When in doubt, stay closer to the reference — it's easier for a user to ask you to diverge than to ask you to undo invented choices that conflict with their brand.
Load slide-design.md for specific guidance on color, type, layout patterns, composition, and what to avoid. When you have a reference file or brand guidelines, treat slide-design.md's principles as defaults for the decisions the user didn't make — not as overrides for the ones they did.
Sections
A section is a horizontal row in the slide grid — every row is a section. Names show up in the editor (next to the row) and in Presenter View (so speakers can jump between groups). They're an organizational aid for whoever is editing the deck — the user owns where the breaks fall, not you.
When asked to organize a deck
"Organize this deck" is ambiguous — grouping, reordering, deduping, or restructuring. Read the deck before reaching for
.
Default: propose, don't ask. Most decks have cues — title bookend, numbered use cases, repeated Before / After pairs, transition slides ("Then X enters the chat"), a Thank you. When cues exist, pick a sectioning and surface it in one confirmation message. Bounded calls inside the proposal (one Use Cases row vs. three, where a transition slide lives) are reversible — pick one and move on.
Fallback: ask when cues are absent. If slides are in arbitrary order or there's no spine, ask which ranges go together and what to call them. Don't slice by thirds as a substitute for reading.
Naming + scoping
Names should be short (1–3 words), concrete (Demo beats Show & tell), and consistent within a deck. Two to five sections is typical; more only for long or repeating decks. Names aren't slide titles — they help find a group, not describe its content.
Renaming a section
returns
— the inner arrays are plain JS arrays of slides, NOT
nodes. Setting
on those arrays silently no-ops. To rename a section, traverse the node tree and set
on the actual
:
js
const slideGrid = figma.currentPage.children.find(c => c.type === "SLIDE_GRID");
slideGrid.children[0].name = "Intro";
Inspecting Slides Files
There is no dedicated read tool for Slides files yet. Use
with read-only scripts for inspection, and
/
for visual context.
- Inspect before creating. Before creating anything, run a read-only to discover what already exists — slides, text, components, naming conventions. The figma-use Section 6 "Inspect first" pattern applies here.
- does NOT work on Slides files — it only supports (Design) editor type.
- output is NOT returned — only the value comes back. Always the data you need.
- Use for visual context — pass a valid to get a screenshot. You can also use inline within scripts.
Quick inspection scripts
List all slides in the deck:
js
const grid = figma.getSlideGrid();
return grid.map((row, rowIdx) =>
row.map((slide, colIdx) => ({
id: slide.id,
name: slide.name,
row: rowIdx,
col: colIdx,
isSkipped: slide.isSkippedSlide,
}))
);
Get text content from a specific slide:
js
const slide = figma.getNodeById("TARGET_SLIDE_ID");
const textNodes = slide.findAll(n => n.type === "TEXT");
const fontsToLoad = new Set();
for (const t of textNodes) {
if (t.fontName !== figma.mixed) {
fontsToLoad.add(JSON.stringify(t.fontName));
} else {
const segments = t.getStyledTextSegments(["fontName"]);
for (const seg of segments) fontsToLoad.add(JSON.stringify(seg.fontName));
}
}
for (const f of fontsToLoad) {
await figma.loadFontAsync(JSON.parse(f));
}
return textNodes.map(t => ({
id: t.id,
name: t.name,
characters: t.characters,
x: t.x,
y: t.y,
width: t.width,
height: t.height,
}));
Reference Docs
Load only the references your task needs:
- slide-gotchas — Pitfalls specific to Slides (coordinate offsets, opaque node types, validation workarounds)
- slide-lifecycle — Create, clone, delete, and reorder slides and slide rows
- slide-grid — Work with the slide grid layout (, )
- slide-content — Build content within slides (text, shapes, auto-layout — SlideNode extends BaseFrameMixin)
- slide-properties — Slide-specific properties (, , , ,
InteractiveSlideElementNode
)
- slide-design — Design principles for visually interesting, varied decks (color strategy, typography, layout variety, spatial composition, anti-patterns)