M
MercyNews
Home
Back
Figma-use: CLI Tool Enables AI Agents to Design in Figma
Technology

Figma-use: CLI Tool Enables AI Agents to Design in Figma

Hacker News9h ago
3 min read
📋

Key Facts

  • ✓ The Figma-use CLI provides approximately 100 commands for creating and modifying design elements in Figma.
  • ✓ JSX importing in the tool is approximately 100x faster than traditional plugin API imports, significantly improving iteration speed.
  • ✓ The render command connects to Figma's internal multiplayer protocol via Chrome DevTools for enhanced performance with large object groups.
  • ✓ The tool is built using Bun and Citty for the CLI, with an Elysia WebSocket proxy for real-time communication.
  • ✓ Figma-use addresses the limitation of the official Figma MCP server, which is primarily read-only.
  • ✓ The developer is actively seeking feedback on CLI ergonomics, missing commands, and JSX syntax naturalness.

In This Article

  1. Quick Summary
  2. Core Capabilities
  3. Technical Architecture
  4. Addressing Design Limitations
  5. Availability & Feedback
  6. Looking Ahead

Quick Summary#

A new command-line interface tool called Figma-use has been developed to bridge the gap between AI agents and design software. Created by developer Dan, this tool allows AI to actively design within Figma rather than just reading files.

The CLI provides approximately 100 commands that enable AI agents to create shapes, text, frames, and components, modify styles, and export assets. This represents a significant shift from existing solutions that are primarily read-only or require inefficient JSON schemas.

Core Capabilities#

The Figma-use CLI offers comprehensive functionality for AI-driven design workflows. Its command set covers the entire design process, from initial creation to final asset export.

Key capabilities include:

  • Creating and modifying basic shapes and text elements
  • Building complex frames and component systems
  • Adjusting styles and properties dynamically
  • Exporting finished assets in various formats

One of the standout features is the JSX importing capability, which is approximately 100x faster than traditional plugin API imports. This speed improvement is crucial for AI agents that need to iterate quickly on design concepts.

"I wanted AI to actually design — create buttons, build layouts, generate entire component systems."

— Dan, Developer of Figma-use

Technical Architecture#

The tool's architecture combines modern technologies for optimal performance. The CLI itself is built using Bun and Citty, while an Elysia WebSocket proxy handles real-time communication.

A notable technical innovation is the render command, which connects directly to Figma's internal multiplayer protocol via Chrome DevTools. This approach provides enhanced performance when dealing with large groups of objects, a common scenario in complex design files.

The entire system is designed to work with any LLM coding assistant, making it versatile and compatible with various AI development workflows.

Addressing Design Limitations#

The motivation behind creating Figma-use stems from limitations in existing solutions. The official Figma MCP server is primarily read-only, restricting AI agents to viewing files rather than creating them.

As the developer explains, the goal was to enable AI to actually design:

I wanted AI to actually design — create buttons, build layouts, generate entire component systems.

Existing alternatives either lacked write capabilities or required verbose JSON schemas that consume excessive tokens, making them inefficient for AI operations. This tool provides a more direct and efficient approach to AI-driven design.

Availability & Feedback#

The tool is available for installation via Bun using the command bun install -g @dannote/figma-use. A demonstration video is available, showcasing the tool's capabilities in a 45-second overview.

The developer is actively seeking feedback on several aspects of the tool:

  • CLI ergonomics and user experience
  • Missing commands or functionality
  • Naturalness of the JSX syntax implementation

Community discussion and feedback are being gathered through a dedicated comments section, providing an opportunity for users to contribute to the tool's evolution.

Looking Ahead#

Figma-use represents a significant step forward in enabling AI agents to participate in creative design workflows. By providing a comprehensive command set and optimized performance, it addresses key limitations of previous approaches.

The tool's compatibility with any LLM coding assistant and its efficient handling of design operations position it as a valuable addition to the AI design ecosystem. As feedback is incorporated and the tool evolves, it may further expand the possibilities for AI-assisted design.

Continue scrolling for more

AI Transforms Mathematical Research and Proofs
Technology

AI Transforms Mathematical Research and Proofs

Artificial intelligence is shifting from a promise to a reality in mathematics. Machine learning models are now generating original theorems, forcing a reevaluation of research and teaching methods.

Just now
4 min
263
Read Article
Society

Congo's Sexual Violence Epidemic Against Children

From an 11-year-old forced into pregnancy to an 8-year-old terrified of uniforms, the Democratic Republic of Congo faces a catastrophic wave of sexual violence against children.

39m
5 min
27
Read Article
Trump's Greenland Tariffs: Impact on NATO Allies
Politics

Trump's Greenland Tariffs: Impact on NATO Allies

Donald Trump's pursuit of Greenland now extends to new tariffs on countries considered NATO allies. But what would such tariffs mean for the European countries affected, how have they been received, and what happens now?

52m
3 min
6
Read Article
US Invasion of Greenland Would Mean War with NATO
Politics

US Invasion of Greenland Would Mean War with NATO

A senior Republican lawmaker has issued a stark warning about the potential consequences of any U.S. military action targeting Greenland, emphasizing that such a move would constitute an act of war against NATO itself.

56m
5 min
6
Read Article
New Power Bank Rules for Air Travel: What You Need to Know
Lifestyle

New Power Bank Rules for Air Travel: What You Need to Know

Following a fire incident on a South Korean flight, airlines like Lufthansa are implementing stricter rules for power banks in carry-on luggage. Here's what travelers need to know.

57m
5 min
6
Read Article
The Next-Gen SQLite Won't Look Like SQLite
Technology

The Next-Gen SQLite Won't Look Like SQLite

SQLite is undergoing a fundamental transformation that will change how developers interact with data. The next generation promises unprecedented performance and capabilities while maintaining its core simplicity.

1h
5 min
0
Read Article
Greenland at Risk: Europe's Stand Against US Expansionism
Politics

Greenland at Risk: Europe's Stand Against US Expansionism

A prominent essayist argues that Europe must take a firm stance against American expansionist tendencies toward Greenland, warning that failure to do so would invite global powers to disregard European sovereignty entirely.

1h
5 min
6
Read Article
The A in AGI Stands for Ads
Technology

The A in AGI Stands for Ads

As Artificial General Intelligence evolves, its development trajectory is increasingly intertwined with advertising business models. This analysis examines the implications for technology, privacy, and the future of digital economies.

1h
6 min
7
Read Article
EU Mulls 'Bazooka' Countermeasure to Trump's Greenland Tariffs
Politics

EU Mulls 'Bazooka' Countermeasure to Trump's Greenland Tariffs

France's Macron said leading push to apply Anti-Coercion Instrument, which allows for curbing imports of goods and services; European ambassadors to hold emergency meeting Sunday.

1h
5 min
13
Read Article
Sarah Knafo: A Vision for a Happier Paris
Politics

Sarah Knafo: A Vision for a Happier Paris

In an exclusive interview, Reconquête candidate Sarah Knafo presents her comprehensive platform aimed at making Paris a 'happy city,' identifying specific urban challenges as her primary opponents.

1h
5 min
12
Read Article
🎉

You're all caught up!

Check back later for more stories

Back to Home