figma-create-new-file
figma/mcp-server-guide
필수 전제조건 — create_new_file 도구 호출 전에 반드시 이 스킬을 호출해야 합니다. 이 스킬을 먼저 로드하지 않고 create_new_file을 직접 호출하지 마십시오. 사용자가 새로운 빈 Figma 파일(새 디자인, FigJam 또는 Slides 파일)을 원하거나 use_figma를 호출하기 전에 새 파일이 필요한 경우 이 스킬을 실행합니다. 사용법 — /figma-create-new-file [editorType] [fileName] (예: /figma-create-new-file figjam My Whiteboard, /figma-create-new-file slides Q3 Review)
...모든 것을 확장하십시오figma-create-new-file 소개
create_new_file MCP 도구를 감싸는 기능으로, 선택된 플랜에 대해 사용자의 초안 폴더에 새 빈 Figma 파일을 생성합니다. 이는 매번 create_new_file 호출 전에 로드해야 하는 필수 전제 조건으로 위치하며, 플랜 해결 결정 트리, 편집기 유형 계약, 그리고 use_figma로의 생성 후 이관 방식을 인코딩합니다. 일반적으로 새 파일이 필요한 경우(예: 새 디자인, FigJam 또는 Slides 파일) use_figma 호출 전에 사용됩니다.
이 스킬은 editorType 다음에 fileName 형식의 선택적 인수를 받으며, editorType은 design(기본값), figjam, 또는 slides 중 하나이며 fileName은 기본값으로 Untitled입니다. 워크플로우는 먼저 planKey를 해결합니다: 사용자가 이미 planKey를 제공한 경우 이를 직접 사용하며, 그렇지 않으면 whoami 도구를 호출하여 그 plans 배열을 검사하고, 단일 플랜이 있는 경우 해당 플랜의 키를 자동으로 사용하거나 여러 플랜이 있는 경우 사용자가 사용할 팀 또는 조직을 선택하도록 요청합니다. 그런 다음 필요한 planKey, fileName, editorType 매개변수를 사용하여 create_new_file을 호출하고, 반환된 file_key와 file_url을 사용하며, file_key를 use_figma와 같은 후속 호출에 전달합니다.
편집기 유형 동작은 계약의 일부입니다. 지원되는 편집기 유형은 design, figjam, slides이며, 모든 파일은 선택된 플랜의 초안 폴더에 생성됩니다. slides 파일에는 문서화된 주의 사항이 적용됩니다: 새로 생성된 slides 파일은 행과 슬라이드가 모두 0개로 시작하므로 figma.getSlideGrid()는 기본 첫 번째 슬라이드 대신 빈 배열을 반환하며, 페이지의 유일한 자식은 빈 SLIDE_GRID 노드입니다. figma.createSlide()의 첫 번째 호출은 행 0을 암시적으로 생성하고 해당 위치에 슬라이드를 삽입하므로, 최소 하나의 슬라이드가 있다고 가정하는 후속 use_figma 스크립트는 빈 경우를 처리하거나 먼저 createSlide()를 호출해야 합니다. use_figma가 다음 단계인 경우, 호출하기 전에 figma-use 스킬을 로드해야 합니다.
자주 묻는 질문
이 스킬은 어떤 인수를 받습니까?
선택적 editorType과 fileName입니다. editorType은 design(기본값), figjam, 또는 slides이며, fileName은 기본값으로 Untitled입니다. 예를 들어, /figma-create-new-file slides Q3 Review는 Q3 Review라는 이름의 Slides 프레젠테이션을 생성합니다.
planKey는 어떻게 해결됩니까?
사용자가 이미 planKey를 제공한 경우 이를 직접 사용합니다. 그렇지 않으면 whoami 도구를 호출합니다: 단일 플랜의 키는 자동으로 사용되며, 여러 플랜이 있는 경우 사용자에게 파일을 생성할 팀 또는 조직을 선택하도록 요청합니다.
새 파일은 어디에 생성됩니까?
선택된 플랜의 사용자 초안 폴더에 생성됩니다. 이 도구는 file_key와 파일을 Figma에서 직접 열 수 있는 file_url을 반환합니다.
새로 생성된 Slides 파일의 특별한 점은 무엇입니까?
slides 파일은 행과 슬라이드가 모두 0개로 시작하므로 figma.getSlideGrid()는 기본 첫 번째 슬라이드 대신 빈 배열을 반환합니다. 첫 번째 figma.createSlide() 호출은 행 0을 암시적으로 생성하므로, 빈 경우를 처리하거나 먼저 createSlide()를 호출해야 합니다.
파일 생성 후 어떻게 해야 합니까?
use_figma와 같은 후속 도구 호출에 반환된 file_key를 사용하십시오. use_figma가 다음 단계인 경우, 호출하기 전에 figma-use 스킬을 로드하십시오.
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, orslides - 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:
User already provided a planKey (e.g. from a previous
whoamicall or in their prompt) → use it directly, skip to Step 2.No planKey available → call the
whoamitool. The response contains aplansarray. Each plan has akey,name,seat, andtier.- Single plan: use its
keyfield automatically. - Multiple plans: ask the user which team or organization they want to create the file in, then use the corresponding plan's
key.
- Single plan: use its
Step 2: Call create_new_file
Call the create_new_file tool with:
| Parameter | Required | Description |
|---|---|---|
planKey | Yes | The plan key from Step 1 |
fileName | Yes | Name for the new file |
editorType | Yes | "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 filefile_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_figmais your next step, load thefigma-useskill 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.
figma-create-new-file 설치
스킬 파일을 다운로드하여 .claude/skills/ 디렉토리에 추출하세요.
ZIP 다운로드저장소를 클론하고 스킬 파일을 프로젝트에 복사하세요.
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
복사





집
