# veryfront__create_external_file

Create external file. Requires project.integrations.connect.

Risk: mutating.

## 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.                                                                                                           |
| `folder_id`         | string | Yes      | Parent folder ID from list\_external\_files, or "root" for the provider root                                                                                                                                               |
| `name`              | string | Yes      | Creates a new file without replacing an existing one. OneDrive and SharePoint return conflict for an existing name; Google Drive creates a new item with the same name. File name, such as "report.md"; no "/".            |
| `content`           | string | Yes      | File content, at most 10000000 characters                                                                                                                                                                                  |
| `content_encoding`  | string |          | Encoding of content: "utf8" (default) for text, "base64" for binary bytes                                                                                                                                                  |
| `mime_type`         | string |          | MIME type; defaults from the name, else text/plain (utf8) or application/octet-stream (base64)                                                                                                                             |
| `idempotency_key`   | string |          | 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. |

## Call it

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "veryfront__create_external_file",
    "arguments": {
      "provider": "<provider>",
      "folder_id": "<folder_id>",
      "name": "<name>",
      "content": "<content>"
    }
  }
}
```
