Skip to Content
Docs
ReferenceOrganise

create_folder

Create a folder

Creates a folder in a project the user can edit. Pass parent_id "root" for the project root, or a folder's entry_id from list_folder or create_folder to create it inside that folder.

Arguments

ArgumentTypeRequiredWhat it is
project_idstringYesThe project's project_id.
namestringYesThe folder's name.
parent_id"root" | stringYes"root", or the entry_id of the folder to create it in.

Call

A host sends a tools/call request to the MCP endpoint, with the arguments it needs.

{  "jsonrpc": "2.0",  "id": 1,  "method": "tools/call",  "params": {    "name": "create_folder",    "arguments": {      "project_id": "<string>",      "name": "<string>",      "parent_id": "<\"root\" | string>"    }  }}

Arguments schema

{  "type": "object",  "properties": {    "project_id": {      "type": "string",      "minLength": 1,      "maxLength": 128,      "pattern": "^[A-Za-z0-9_-]+$",      "description": "The project's project_id."    },    "name": {      "type": "string",      "minLength": 1,      "maxLength": 2083,      "pattern": "^[^\\x00]*$",      "description": "The folder's name."    },    "parent_id": {      "anyOf": [        {          "type": "string",          "const": "root"        },        {          "type": "string",          "minLength": 1,          "maxLength": 128,          "pattern": "^[A-Za-z0-9_-]+$"        }      ],      "description": "\"root\", or the entry_id of the folder to create it in."    }  },  "required": [    "project_id",    "name",    "parent_id"  ]}

Answer

The answer's structuredContent follows this schema, and its text holds the same JSON.

{  "type": "object",  "properties": {    "id": {      "type": "string"    },    "entry_id": {      "type": "string"    },    "name": {      "type": "string"    },    "parent_id": {      "type": "string"    },    "url": {      "type": "string"    }  },  "required": [    "id",    "entry_id",    "name",    "parent_id",    "url"  ],  "additionalProperties": false}