figma-create-new-file
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinesecreate_new_file — Create a New Figma File
create_new_file — 创建新的Figma文件
Use the MCP tool to create a new blank Figma file in the user's drafts folder. This is typically used before when you need a fresh file to work with.
create_new_fileuse_figma使用 MCP工具在用户的草稿文件夹中创建一个空白的Figma文件。通常在需要全新文件进行操作时,会在调用之前使用该工具。
create_new_fileuse_figmaSkill Arguments
技能参数
This skill accepts optional arguments:
/figma-create-new-file [editorType] [fileName]- editorType: (default) or
designfigjam - fileName: Name for the new file (defaults to "Untitled")
Examples:
- — creates a design file named "Untitled"
/figma-create-new-file - — creates a FigJam file named "My Whiteboard"
/figma-create-new-file figjam My Whiteboard - — creates a design file named "My New Design"
/figma-create-new-file design My New Design
Parse the arguments from the skill invocation. If editorType is not provided, default to . If fileName is not provided, default to .
"design""Untitled"该技能接受可选参数:
/figma-create-new-file [editorType] [fileName]- editorType:(默认值)或
designfigjam - fileName:新文件的名称(默认为“Untitled”)
示例:
- — 创建一个名为“Untitled”的设计文件
/figma-create-new-file - — 创建一个名为“My Whiteboard”的FigJam文件
/figma-create-new-file figjam My Whiteboard - — 创建一个名为“My New Design”的设计文件
/figma-create-new-file design My New Design
从技能调用中解析参数。如果未提供editorType,默认使用。如果未提供fileName,默认使用。
"design""Untitled"Workflow
工作流程
Step 1: Resolve the planKey
步骤1:解析planKey
The tool requires a parameter. Follow this decision tree:
create_new_fileplanKey-
User already provided a planKey (e.g. from a previouscall or in their prompt) → use it directly, skip to Step 2.
whoami -
No planKey available → call thetool. The response contains a
whoamiarray. Each plan has aplans,key,name, andseat.tier- Single plan: use its field automatically.
key - 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
create_new_fileplanKey-
用户已提供planKey(例如来自之前的调用或在提示中)→ 直接使用该密钥,跳至步骤2。
whoami -
无可用planKey → 调用工具。返回结果包含一个
whoami数组,每个计划包含plans、key、name和seat字段。tier- 单个计划:自动使用其字段。
key - 多个计划:询问用户想要在哪个团队或组织中创建文件,然后使用对应计划的。
key
- 单个计划:自动使用其
Step 2: Call create_new_file
步骤2:调用create_new_file
Call the tool with:
create_new_file| Parameter | Required | Description |
|---|---|---|
| Yes | The plan key from Step 1 |
| Yes | Name for the new file |
| Yes | |
Example:
json
{
"planKey": "team:123456",
"fileName": "My New Design",
"editorType": "design"
}使用以下参数调用工具:
create_new_file| 参数 | 是否必填 | 说明 |
|---|---|---|
| 是 | 步骤1中获取的计划密钥 |
| 是 | 新文件的名称 |
| 是 | |
示例:
json
{
"planKey": "team:123456",
"fileName": "My New Design",
"editorType": "design"
}Step 3: Use the result
步骤3:使用返回结果
The tool returns:
- — the key of the newly created file
file_key - — a direct URL to open the file in Figma
file_url
Use the for subsequent tool calls like .
file_keyuse_figma工具返回以下内容:
- — 新创建文件的密钥
file_key - — 打开该Figma文件的直接链接
file_url
后续调用等工具时,可使用。
use_figmafile_keyImportant Notes
重要说明
- The file is created in the user's drafts folder for the selected plan.
- Only and
"design"editor types are supported."figjam" - If is your next step, load the
use_figmaskill before calling it.figma-use
- 文件会创建在所选计划对应的用户草稿文件夹中。
- 仅支持和
"design"两种编辑器类型。"figjam" - 如果下一步要调用,请先加载
use_figma技能再进行调用。figma-use