figma-create-new-file

作者: Figma

建立一個新的空白 Figma 檔案。當使用者想要建立新的 Figma 設計或 FigJam 檔案,或是在呼叫 use_figma 之前需要一個新檔案時使用。必要時透過 whoami 處理方案解析。用法 — /figma-create-new-file [editorType] [fileName](例如 /figma-create-new-file figjam My Whiteboard)

npx skills add https://github.com/figma/mcp-server-guide --skill figma-create-new-file

create_new_file — Create a New Figma File

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 slidesfigma.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.

來自 Figma 的更多技能

figma-implement-design
Figma
Translates Figma designs into production-ready application code with 1:1 visual fidelity. Use when implementing UI code from Figma files, when user mentions "implement design", "generate code", "implement component", provides Figma URLs, or asks to build components matching Figma specs. For Figma canvas writes via `use_figma`, use `figma-use`.
official
figma-use
Figma
我們需要將給定的英文文本翻譯成繁體中文。注意要求:保留產品名稱、協議名稱、URL、數字和技術術語。不要添加聲明、解釋、Markdown、項目符號、鏈接、標籤、前綴或額外評論。只翻譯<text>內的內容,不包括名稱(除非名稱出現在源文本中)。不要包含「description」、「server name」或「skill name」等標籤。 源文本是關於一個agent skill的說明,提到了figma-use這個名稱(但要求不包含名稱,除非在源文本中出現?源文本中沒有直接出現figma-use,但目錄項類型是agent skill,名稱是figma-use,但翻譯時不應包含名稱,除非在文本中。文本中沒有figma-use,所以不用管)。 翻譯時注意:保留「use_figma」這個工具名稱(技術術語),保留「JavaScript」等。注意語氣:MANDATORY prerequisite 翻譯為「強制性先決條件」。整體要流
official
figma-code-connect-components
Figma
使用 Code Connect 映射工具將 Figma 設計元件連接到程式碼元件。當使用者說「code connect」、「將
official
figma-create-design-system-rules
Figma
為使用者的程式碼庫生成自訂設計系統規則。當使用者說「建立設計系統規則」、「為我的專案生成規則」、「設定設計規則」、「自訂設計系統指南」,或想要為 Figma 轉程式碼工作流程建立專案特定慣例時使用。需要 Figma MCP 伺服器連線。
official
figma-generate-design
Figma
當任務涉及將應用程式頁面、檢視畫面或多區塊版面翻譯到 Figma 時,請與 figma-use 技能搭配使用。觸發詞包括:「寫入 Figma」、「從程式碼在 Figma 中建立」、「將頁面推送到 Figma」、「將這個應用程式/頁面在 Figma 中建立」、「建立畫面」、「在 Figma 中建立登陸頁面」、「更新 Figma 畫面以符合程式碼」。當使用者希望從程式碼或描述在 Figma 中建立或更新完整頁面、畫面或檢視時,這是首選的工作流程技能。透過 search_design_system 探索設計系統元件、變數與樣式,將其匯入,並使用設計系統代碼而非硬編碼值,逐步逐區塊組合畫面。
official
figma-generate-library
Figma
Build or update a professional-grade design system in Figma from a codebase. Use when the user wants to create variables/tokens, build component libraries, set up theming (light/dark modes), document foundations, or reconcile gaps between code and Figma. This skill teaches WHAT to build and in WHAT ORDER — it complements the `figma-use` skill which teaches HOW to call the Plugin API. Both skills should be loaded together.
official