opción
HogarHogar Skill Herramientas MCP figma-create-new-file

figma-create-new-file

figma/mcp-server-guide figma/mcp-server-guide

Prerequisito OBLIGATORIO — debes invocar esta habilidad ANTES de cada llamada a la herramienta create_new_file. NUNCA llames a create_new_file directamente sin cargar esta habilidad primero. Actívala cuando el usuario desee un nuevo archivo en blanco de Figma: un nuevo diseño, un archivo de FigJam o de Slides; o cuando necesites un archivo nuevo antes de llamar a use_figma. Uso — /figma-create-new-file [editorType] [fileName] (por ejemplo, /figma-create-new-file figjam Mi Pizarra, /figma-create-new-file slides Revisión T3)

...Expandir todo
11
Tiempo actualizado 27 de agosto de 2026

Acerca de figma-create-new-file

Envuelve la herramienta MCP create_new_file, que crea un nuevo archivo de Figma en blanco en la carpeta de borradores del usuario para un plan seleccionado. Se posiciona como un requisito previo obligatorio que debe cargarse antes de cada llamada a create_new_file, ya que codifica el árbol de decisiones de resolución de plan, el contrato del tipo de editor y la entrega posterior a use_figma. Se utiliza normalmente antes de use_figma cuando se necesita un archivo nuevo, por ejemplo, un nuevo diseño, un archivo de FigJam o de Slides.

La habilidad acepta argumentos opcionales en el orden editorType y luego fileName, donde editorType es design (el valor predeterminado), figjam o slides, y fileName tiene como valor predeterminado Untitled. El flujo de trabajo primero resuelve un planKey: si el usuario ya proporcionó uno, se utiliza directamente; de lo contrario, se llama a la herramienta whoami y se inspecciona su matriz plans, utilizando automáticamente la clave del único plan o preguntando al usuario qué equipo u organización utilizar cuando existen múltiples planes. Luego, llama a create_new_file con los parámetros planKey, fileName y editorType requeridos, y utiliza el file_key y file_url devueltos, pasando file_key a llamadas posteriores como use_figma.

El comportamiento del tipo de editor es parte del contrato. Los tipos de editor admitidos son design, figjam y slides, y cada archivo se crea en la carpeta de borradores del plan seleccionado. Se aplica una advertencia documentada a los archivos de slides: un archivo de slides recién creado comienza con cero filas y cero diapositivas, por lo que figma.getSlideGrid() devuelve una matriz vacía en lugar de una primera diapositiva predeterminada, y el único hijo de la página es el nodo SLIDE_GRID vacío. La primera llamada a figma.createSlide() crea implícitamente la fila cero e inserta la diapositiva allí, por lo que los scripts de use_figma posteriores que asumen al menos una diapositiva deben protegerse para el caso vacío o llamar a createSlide() primero. Cuando use_figma es el siguiente paso, se debe cargar la habilidad figma-use antes de llamarla.

Preguntas frecuentes

¿Qué argumentos acepta esta habilidad?

editorType y fileName opcionales. editorType es design (predeterminado), figjam o slides, y fileName tiene como valor predeterminado Untitled. Por ejemplo, /figma-create-new-file slides Q3 Review crea una presentación de Slides llamada Q3 Review.

¿Cómo se resuelve planKey?

Si el usuario ya proporcionó un planKey, se utiliza directamente. De lo contrario, se llama a la herramienta whoami: se utiliza automáticamente la clave de un único plan, mientras que múltiples planes solicitan al usuario que elija en qué equipo u organización crear el archivo.

¿Dónde se crea el nuevo archivo?

En la carpeta de borradores del usuario para el plan seleccionado. La herramienta devuelve un file_key y un file_url que abre el archivo directamente en Figma.

¿Qué hay de especial en los archivos de Slides recién creados?

Un archivo de slides comienza con cero filas y cero diapositivas, por lo que figma.getSlideGrid() devuelve una matriz vacía en lugar de una primera diapositiva predeterminada. La primera llamada a figma.createSlide() crea implícitamente la fila cero, por lo que se debe proteger para el caso vacío o llamar a createSlide() primero.

¿Qué debo hacer después de crear el archivo?

Utilice el file_key devuelto para llamadas posteriores a herramientas como use_figma. Si use_figma es el siguiente paso, cargue la habilidad figma-use antes de llamarla.

Ver en GitHub

MANDATORY: load this skill before every create_new_file tool call. It encodes the plan-resolution decision tree, the editor-type contract, and the post-creation handoff to use_figma.

Use the create_new_file MCP tool to create a new blank Figma file in the user's drafts folder. This is typically used before use_figma when you need a fresh file to work with.

Skill Arguments

This skill accepts optional arguments: /figma-create-new-file [editorType] [fileName]

  • editorType: design (default), figjam, or slides
  • fileName: Name for the new file (defaults to "Untitled")

Examples:

  • /figma-create-new-file — creates a design file named "Untitled"
  • /figma-create-new-file figjam My Whiteboard — creates a FigJam file named "My Whiteboard"
  • /figma-create-new-file design My New Design — creates a design file named "My New Design"
  • /figma-create-new-file slides Q3 Review — creates a Slides presentation named "Q3 Review"

Parse the arguments from the skill invocation. If editorType is not provided, default to "design". If fileName is not provided, default to "Untitled".

Workflow

Step 1: Resolve the planKey

The create_new_file tool requires a planKey parameter. Follow this decision tree:

  1. User already provided a planKey (e.g. from a previous whoami call or in their prompt) → use it directly, skip to Step 2.

  2. No planKey available → call the whoami tool. The response contains a plans array. Each plan has a key, name, seat, and tier.

    • Single plan: use its key field automatically.
    • Multiple plans: ask the user which team or organization they want to create the file in, then use the corresponding plan's key.

Step 2: Call create_new_file

Call the create_new_file tool with:

ParameterRequiredDescription
planKeyYesThe plan key from Step 1
fileNameYesName for the new file
editorTypeYes"design", "figjam", or "slides"

Example:

{  "planKey": "team:123456",  "fileName": "My New Design",  "editorType": "design"}

Step 3: Use the result

The tool returns:

  • file_key — the key of the newly created file
  • file_url — a direct URL to open the file in Figma

Use the file_key for subsequent tool calls like use_figma.

Important Notes

  • The file is created in the user's drafts folder for the selected plan.
  • Supported editor types are "design", "figjam", and "slides".
  • If use_figma is your next step, load the figma-use skill before calling it.

Editor-specific notes

Slides — newly created files have an empty grid

A slides file produced by this tool starts with zero rows and zero slides — figma.getSlideGrid() returns [], not a default first slide. The page's only child is the SLIDE_GRID node itself, which is empty until you create content. The first call to figma.createSlide() implicitly creates row 0 and inserts the new slide there.

If your follow-up use_figma script assumes at least one slide exists (e.g. to read theme tokens off it), guard for the empty case or call createSlide() first. See figma-use-slides → slide-grid for full details.

Todos los archivos

1 archivos
SKILL.md 3.9k
Ver

Instalar figma-create-new-file

Descarga y extrae los archivos de habilidades en tu directorio .claude/skills/.

Descargar ZIP

Clona el repositorio y copia los archivos de la habilidad a tu proyecto.

git clone https://github.com/figma/mcp-server-guide/blob/main/skills/figma-create-new-file/SKILL.md # Copy SKILL.md to your .claude/skills/ directory

Copiar Copiar
Configuración rápida: Copia la carpeta de la habilidad a .claude/skills/Claude detectará y utilizará automáticamente la habilidad

Habilidades relacionadas

office-mcp
Tiempo actualizado 13 de julio de 2026
mcpgraph
Tiempo actualizado 29 de junio de 2026
composio
Tiempo actualizado 29 de junio de 2026
connect-mcp-server
Tiempo actualizado 29 de junio de 2026
OR