🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

figmatk

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

figmatk

Figma Toolkit — Swiss-army knife CLI for Figma .deck and .fig files

latest
Source
npmnpm
Version
0.3.11
Version published
Maintainers
1
Created
Source

FigmaTK — Figma Toolkit

Swiss-army knife CLI for Figma Slides .deck files. Parse, inspect, modify, and rebuild presentations programmatically — no Figma API required.

Figma File Formats

Each Figma product has its own native file format:

ProductExtensionSupported
Figma Slides.deck
Figma Design.fig❌ not yet
Figma Jam (whiteboard).jam❌ not yet
Figma Buzz.buzz❌ not yet
Figma Sites.site❌ not yet
Figma Make.make❌ not yet

Why native .deck?

Figma Slides lets you download presentations as .deck files and re-upload them. This is the native round-trip format. Exporting to .pptx is lossy — vectors get rasterized, fonts fall back to system defaults, layout breaks. By staying in .deck, you preserve everything exactly as Figma renders it.

FigmaTK makes this round-trip programmable. Download a .deck, modify it, re-upload. Everything stays native.

Plug in Claude Cowork or any coding agent and you have an AI that can read and edit Figma presentations end-to-end — without ever opening the Figma UI.

Use Cases

  • AI agent for presentations — let an LLM rewrite copy, insert images, and produce a ready-to-upload .deck
  • Batch-produce branded decks — start from a template, feed in data per client/project, get pixel-perfect slides out
  • Inspect and audit — understand the internal structure of any .deck file
  • Automate text and image placement across dozens of slides in seconds

Install

npm install -g figmatk

Node 18+. No build step. Pure ESM.

Quick Start

figmatk inspect my-presentation.deck        # node hierarchy
figmatk list-text my-presentation.deck      # all text + images per slide
figmatk list-overrides my-presentation.deck # editable fields per symbol

→ Full CLI reference: docs/cli.md

Claude Cowork / MCP Integration

FigmaTK supports two Claude Cowork install paths:

  • GitHub-backed personal plugin install, which preserves Claude Cowork's repo update-check behavior
  • Local .mcpb bundle install, which matches Anthropic's current desktop-extension packaging model

Option 1 — Install from GitHub in Claude Cowork

If you want Claude Cowork to keep checking the repo for updates, install figmatk from GitHub/personal plugins inside Claude Cowork.

That path uses the checked-in plugin.json and marketplace.json metadata.

Option 2 — Install the local MCPB bundle

Build the extension bundle:

npm install
npm run pack

This creates dist/figmatk.mcpb. Install that bundle from Claude Desktop/Cowork's Extensions UI.

Install in Claude Cowork:

  • Open Claude Cowork or Claude Desktop.
  • Go to Settings.
  • Open Extensions.
  • Choose the local install/add option.
  • Select dist/figmatk.mcpb.

Use this path when you want a local extension artifact. Unlike the GitHub-backed personal plugin path, local .mcpb installs do not poll the repo for updates automatically.

The MCP server covers four high-level workflows:

  • create a new deck from scratch
  • author a reusable Slides template
  • instantiate a new deck from a template
  • inspect or edit an existing deck

→ MCP tool reference: docs/mcp.md

Template Workflows

FigmaTK supports two related template states:

  • Draft templates: SLIDE_ROW -> SLIDE -> ...
  • Published templates: SLIDE_ROW -> MODULE -> SLIDE -> ...

Reusable template authoring is built around explicit layout and slot naming, then a publish-like wrapping step before later instantiation.

→ Template workflow guide: docs/template-workflows.md

Programmatic API

import { Deck } from 'figmatk';

const deck = await Deck.open('template.deck');
const slide = deck.slides[0];
slide.addText('Hello world', { style: 'Title' });
await deck.save('output.deck');
Docs
MCP / Claude workflowsdocs/mcp.md
High-level APIdocs/figmatk-api-spec.md
Low-level FigDeck APIdocs/library.md
Template workflowsdocs/template-workflows.md
File format internalsdocs/format/

License

MIT

Keywords

figma

FAQs

Package last updated on 13 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts