# Create external folder

Tool: `veryfront__create_external_folder`

Create external folder. Requires project.integrations.connect.

## Arguments

| Name                | Type                                    | Required | Description                                                                                                                                                                                                                |
| ------------------- | --------------------------------------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `project_reference` | string                                  |          | Project ID or slug. Requires project.integrations.connect through the caller's own personal provider connection.                                                                                                           |
| `provider`          | string                                  | Yes      | Storage provider accessed through the caller's own personal connection. A shared project connection is not used. One of `onedrive`, `sharepoint`, `drive`.                                                                 |
| `folder_id`         | string · min length 1 · max length 1024 |          | Parent folder ID from list\_external\_files, or "root"                                                                                                                                                                     |
| `parent_id`         | string · max length 1024                |          | Older name for folder\_id: parent folder ID (use "root" for root folder)                                                                                                                                                   |
| `name`              | string · min length 1 · max length 255  | Yes      | Folder name                                                                                                                                                                                                                |
| `idempotency_key`   | string · min length 1 · max length 128  |          | Optional key of 1-128 characters without whitespace. Retrying with the same key and arguments within 24 hours returns the first result instead of creating another item; the same key with different arguments is refused. |

## Responses

| Status | Description                                           |
| ------ | ----------------------------------------------------- |
| 200    | The tool ran; its output is result.structuredContent. |

## Call it

```bash
curl -X POST -N "https://api.veryfront.com/mcp" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Accept: application/json, text/event-stream" \
  -H "Content-Type: application/json" \
  -d '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "veryfront__create_external_folder",
    "arguments": {
      "provider": "onedrive",
      "name": "string"
    }
  }
}'
```

## Example response

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\"message\":\"string\",\"file\":{\"id\":\"string\",\"name\":\"string\",\"path\":\"string\",\"mime_type\":\"string\",\"size\":0,\"size_bytes\":0,\"is_folder\":false,\"kind\":\"file\",\"modified_at\":\"2026-01-01T00:00:00Z\",\"thumbnail\":\"string\",\"provider\":\"onedrive\",\"parent_id\":\"string\",\"etag\":\"string\",\"thumbnail_url\":\"string\",\"web_url\":\"string\"}}"
      }
    ],
    "structuredContent": {
      "message": "string",
      "file": {
        "id": "string",
        "name": "string",
        "path": "string",
        "mime_type": "string",
        "size": 0,
        "size_bytes": 0,
        "is_folder": false,
        "kind": "file",
        "modified_at": "2026-01-01T00:00:00Z",
        "thumbnail": "string",
        "provider": "onedrive",
        "parent_id": "string",
        "etag": "string",
        "thumbnail_url": "string",
        "web_url": "string"
      }
    }
  }
}
```
