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、またはスライドファイルなど、新鮮なファイルが必要な場合に 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 ファイルは、行とスライドがゼロから始まるため、figma.getSlideGrid() はデフォルトの最初のスライドではなく空の配列を返し、ページの唯一の子は空の SLIDE_GRID ノードです。figma.createSlide() の最初の呼び出しは暗黙的に行ゼロを作成し、そこにスライドを挿入するため、少なくとも 1 つのスライドを前提とする後続の use_figma スクリプトは、空の場合のガードを行うか、最初に createSlide() を呼び出す必要があります。use_figma が次のステップである場合、それを呼び出す前に figma-use スキルを読み込む必要があります。
よくある質問
このスキルが受け付ける引数は何ですか?
オプションの editorType と fileName です。editorType は design(デフォルト)、figjam、または slides であり、fileName は Untitled がデフォルトです。例えば、/figma-create-new-file slides Q3 Review は、Q3 Review という名前のスライドプレゼンテーションを作成します。
planKey はどのように解決されますか?
ユーザーが既に planKey を提供している場合は、それが直接使用されます。そうでない場合は whoami ツールが呼び出されます。単一のプランが存在する場合はそのキーが自動的に使用され、複数のプランが存在する場合は、ファイルをどのチームまたは組織内に作成するかをユーザーに選択するよう促します。
新しいファイルはどこに作成されますか?
選択されたプランのユーザーのドラフトフォルダ内です。このツールは、Figma 内でファイルを直接開く file_key と file_url を返します。
新しく作成されたスライドファイルに特別な点はありますか?
slides ファイルは、行とスライドがゼロから始まるため、figma.getSlideGrid() はデフォルトの最初のスライドではなく空の配列を返します。最初の figma.createSlide() 呼び出しは暗黙的に行ゼロを作成するため、空の場合のガードを行うか、最初に 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
コピー





家
