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.

21m
5 min
27
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.

58m
5 min
6
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
6
Read Article
Mark Cuban's Millions Fuel Indiana's Football Dream
Sports

Mark Cuban's Millions Fuel Indiana's Football Dream

Billionaire entrepreneur Mark Cuban is one of the wealthiest donors to an Indiana University football program that's vying for the national championship.

1h
5 min
6
Read Article
Red States Push Liability Shields for Oil Giants
Politics

Red States Push Liability Shields for Oil Giants

Lawmakers in Oklahoma and Utah are advancing legislation that would block lawsuits against oil companies for their role in the climate crisis, a move critics call a coordinated effort to deny communities their day in court.

1h
5 min
6
Read Article
Mapping Our Solar Neighborhood: The 3D Quest
Science

Mapping Our Solar Neighborhood: The 3D Quest

As humanity expands its reach beyond Earth, creating a precise 3D map of our solar system has become a critical priority for space exploration. This comprehensive cartography effort will guide future missions and deepen our understanding of the cosmic neighborhood.

1h
7 min
6
Read Article
Best Buy's Winter Sale: Top 10 Tech Deals to Grab Now
Technology

Best Buy's Winter Sale: Top 10 Tech Deals to Grab Now

Best Buy's Winter Sale features significant discounts on OLED TVs, headphones, fitness trackers, and more. Here are the top 10 deals worth your attention before the event ends on January 19th.

1h
5 min
2
Read Article
At 60, She Sold Her Home and Took a Cruise Ship Job
Lifestyle

At 60, She Sold Her Home and Took a Cruise Ship Job

With her son grown and debt rising, a woman in her 60s sold the home she raised her son in. She took a job on a cruise ship and found the freedom she needed.

1h
5 min
6
Read Article
Ravioli com recheio de carne de sol e calda de rapadura: confira a receita
Lifestyle

Ravioli com recheio de carne de sol e calda de rapadura: confira a receita

Receita de ravioli com recheio de carne de sol e calda de rapadura Uma combinação que une a tradição da culinária italiana aos sabores do Nordeste brasileiro. Neste domingo (18), o programa Nordeste Rural apresentou a receita de um ravioli recheado com carne de sol, acompanhado de calda de rapadura, valorizando ingredientes regionais em uma releitura gastronômica criativa. A receita é ensinada por Simone Romão, estudante de gastronomia. A proposta de incorporar a identidade regional ao ravioli surgiu a partir de uma atividade avaliativa do curso, que desafiava os alunos a desenvolver pratos utilizando ingredientes locais. Clique aqui para seguir o canal do g1 Ceará no WhatsApp A seguir, confira as instruções para fazer a receita. Ingredientes 🧂 Para o recheio: 300 g de carne de sol; Meia cebola roxa picada; Um dente de alho picado; 50 g de nata ou requeijão cremoso; 50 g de queijo ralado; Uma colher de sopa de manteiga da terra; Pimenta-do-reino; Cheiro-verde a gosto. Para a massa: 500 g de macaxeira cozida e amassada; 100 g de farinha de trigo; Uma gema; Uma colher de sopa de manteiga da terra; Sal a gosto. Para a calda: 100 g de rapadura ralada; 100 ml de cachaça envelhecida; 200 ml de caldo de carne caseiro; Uma colher de chá de vinagre de maçã; Pimenta-de-cheiro a gosto. Modo de preparo 🥣 Com massa de macaxeira, recheio de carne de sol e redução de rapadura, o ravioli apresentado no Nordeste Rural valoriza ingredientes regionais. TV Verdes Mares Preparo da calda e da carne: Cozinhe a carne de sol picada na panela de pressão por cerca de 20 minutos. Em uma frigideira, derreta a rapadura ralada com a cachaça envelhecida até formar um caramelo fino. Acrescente o caldo de carne, o vinagre de maçã e a pimenta-de-cheiro (colocada grosseiramente, apenas para aromatizar). Deixe reduzir até atingir consistência de caramelo e finalize com uma pitada de sal. Preparo do recheio: Refogue a cebola roxa e o alho na manteiga da terra. Adicione o cheiro-verde (coentro e cebolinha) e a carne de sol cozida e desfiada. Incorpore o queijo coalho ralado e o requeijão, com cuidado para não usar em excesso. Finalize com pimenta-do-reino preta a gosto. Preparo da massa: Amasse a macaxeira ainda quente, logo após sair do fogo. Em um recipiente, misture a macaxeira com a gema, a manteiga da terra e a farinha de trigo, acrescentada aos poucos. Sove a massa sobre uma bancada até que fique homogênea e não grude nas mãos. Montagem dos raviolis: Abra a massa com auxílio de plástico filme e um rolo até atingir a espessura desejada. Corte a massa em discos e umedeça levemente as bordas com água. Coloque o recheio no centro, feche no formato de meia-lua e sele as bordas com carretilha ou garfo. Cozimento e finalização: Cozinhe os raviolis em água quente até que comecem a flutuar. Para servir, faça uma base com a calda (opcionalmente coada), disponha os raviolis e finalize com mais redução de rapadura. Acrescente tiras de queijo frito e salsinha para finalizar o prato. Assista aos vídeos mais vistos do Ceará:

1h
3 min
0
Read Article
🎉

You're all caught up!

Check back later for more stories

Back to Home