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 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.
{
  "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.

Skills เพิ่มเติมจาก Figma

figma-generate-design
Figma
ใช้สกิลนี้ควบคู่กับ figma-use เมื่อภารกิจเกี่ยวข้องกับการแปลหน้าแอปพลิเคชัน มุมมอง หรือเค้าโครงหลายส่วนลงใน Figma ทริกเกอร์: 'write to Figma', 'create in Figma from code', 'push page to Figma', 'take this app/page and build it in Figma', 'create a screen', 'build a landing page in Figma', 'update the Figma screen to match code' นี่คือสกิลเวิร์กโฟลว์ที่ต้องการเมื่อผู้ใช้ต้องการสร้างหรืออัปเดตหน้าเต็ม หน้าจอ หรือมุมมองใน Figma จากโค้ดหรือคำอธิบาย ค้นหาคอมโพเนนต์ ตัวแปร และสไตล์ของระบบดีไซน์ผ่าน search_design_system นำเข้า และประกอบหน้าจอทีละส่วนโดยใช้โทเค็นของระบบดีไซน์แทนค่าที่เขียนตายตัว
figma-generate-library
Figma
สร้างหรืออัปเดตระบบดีไซน์ระดับมืออาชีพใน 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`.
figma-use
Figma
We need to translate the given English text into Thai. The instruction says to preserve product names, protocol names, URLs, numbers, technical terms. The name "figma-use" is not in the text, so we don't include it. The text is a description of a prerequisite for using a skill. We must translate naturally while keeping terms like "use_figma", "JavaScript", "Figma", "auto-layout", "fills", "variables", "tokens", "components", "variants" as is. Also preserve "MANDATORY prerequisite" as is? Probably translate but keep the emphasis. The instruction says "preserve product names, protocol names, URLs, numbers, and technical terms." So "Figma" is a product name, "JavaScript" is a technical term, "use_figma" is a function name, "auto-layout", "fills", "variables", "tokens", "components", "variants" are technical terms. We should keep them in English. Also "MANDATORY prerequisite" might be kept as is
figma-create-design-system-rules
Figma
สร้างกฎระบบดีไซน์ที่กำหนดเองสำหรับโค้ดเบสของผู้ใช้ ใช้เมื่อผู้ใช้พูดว่า "สร้างกฎระบบดีไซน์" "สร้างกฎสำหรับโปรเจกต์ของฉัน" "ตั้งค่ากฎการออกแบบ" "ปรับแต่งแนวทางระบบดีไซน์" หรือต้องการกำหนดข้อกำหนดเฉพาะโปรเจกต์สำหรับเวิร์กโฟลว์จาก Figma สู่โค้ด ต้องมีการเชื่อมต่อเซิร์ฟเวอร์ Figma MCP
figma-code-connect-components
Figma
Connects Figma design components to code components using Code Connect mapping tools. Use when user says "code connect", "connect this component to code", "map this component", "link component to code", "create code connect mapping", or wants to establish mappings between Figma designs and code implementations. For canvas writes via `use_figma`, use `figma-use`.