オプション
家 Skill MCPツール figma-create-new-file

figma-create-new-file

figma/mcp-server-guide 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)

...すべて拡張します
11
更新された時間 2026年8月27日

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 スキルを読み込んでください。

GitHubで見る

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

すべてのファイル

1件のファイル

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

コピー コピー
クイックセットアップ: スキルフォルダを .claude/skills にコピーしてください。Claude はそのスキルを自動的に検出して使用します。
リポジトリ figma/mcp-server-guide

関連スキル

office-mcp
更新された時間 2026年7月13日
mcpgraph
更新された時間 2026年6月29日
composio
更新された時間 2026年6月29日
connect-mcp-server
更新された時間 2026年6月29日
OR