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 從公開儲存庫中收錄這些內容。

檢舉或申請下架