Figma Create New File

作者 figmaf0493295acf5无许可证2K 个星标收录于 2026年10月8日更新于 2026年10月8日仓库3天前更新

Always use this skill when the user wants to create a new Figma Design, FigJam, or Slides file. You MUST invoke this skill BEFORE every `create_new_file` tool call.

仅含说明Design & Creative
AI 生成的概览

指导通过 create_new_file MCP 工具创建新的 Figma Design、FigJam 或 Slides 文件。

功能
该技能引导智能体使用 create_new_file MCP 工具创建新的 Figma Design、FigJam 或 Slides 文件。内容包括从用户输入或 whoami 调用中解析 planKey、选择 editorType,并使用必需参数调用该工具。它还说明新建的 Slides 文件幻灯片网格为空,需先调用 createSlide 才能读取幻灯片属性。
适用场景
当用户想要创建新的 Figma Design、FigJam 或 Slides 文件时使用。它应在任何 create_new_file 工具调用之前运行。
运行要求
需要 Figma MCP 工具 create_new_file 和 whoami,以及 Figma 方案密钥。不包含脚本,仅为说明文档。

Create a new file in Figma

Steps to create a new Figma Design, FigJam, or Slides file using the create_new_file MCP tool.

Step 1: Resolve the planKey and editorType

Use the planKey the user provided or selected for this task. Otherwise, call whoami and inspect the returned plans.

  • No plans: inform the user that file creation cannot proceed.
  • One plan: use its key as planKey.
  • Multiple plans: show the available plans, ask the user to select one and then use that plan's key as planKey.

Infer editorType from the requested file type by choosing from the tool's advertised input enum. If unclear, ask the user to specify the file type.

Step 2: Call create_new_file

Call the create_new_file tool with all three required arguments:

  • fileName: Required. Choose a concise name if the user does not provide one.
  • planKey: Required. Use the planKey resolved in Step 1.
  • editorType: Required. Use the editorType selected in Step 1.
  • projectId: Optional. Set it to create the file in a specific project.
json
{  "fileName": "Quarterly planning",  "planKey": "team::1234567890",  "editorType": "design"}
  • Use the file_key from the create_new_file tool response for subsequent tool calls like use_figma.

Step 3: (Slides only) Handle the empty grid

A new Slides file contains no slides: figma.getSlideGrid() returns []. Before reading properties such as theme tokens from a slide, call figma.createSlide() or handle the empty case. The first createSlide() call automatically creates row 0 and inserts the slide.

来源与署名

来源:figma/mcp-server-guide位于skills/figma-create-new-file提交f049329

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架