# Create upload

Tool: `veryfront__create_upload`

Create a pending upload at a project path and return the signed URL and headers for the PUT request that sends the bytes. Requires project.uploads.write.

## Arguments

| Name                | Type                           | Required | Description                                                                                     |
| ------------------- | ------------------------------ | -------- | ----------------------------------------------------------------------------------------------- |
| `path`              | string                         | Yes      | Project-relative destination path, for example assets/image.png. Leading slashes are stripped.  |
| `content_type`      | string                         |          | MIME type; it becomes a required header of the PUT request.                                     |
| `size_bytes`        | integer · max 9007199254740991 | Yes      | File size in bytes, checked against the storage quota.                                          |
| `project_reference` | string                         |          | Project UUID, slug or configured domain; optional when the selected context supplies a project. |

## 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_upload",
    "arguments": {
      "path": "string",
      "size_bytes": 1
    }
  }
}'
```

## Example response

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\"upload_id\":\"string\",\"path\":\"string\",\"upload_url\":\"string\",\"required_headers\":{},\"status\":\"pending\"}"
      }
    ],
    "structuredContent": {
      "upload_id": "string",
      "path": "string",
      "upload_url": "string",
      "required_headers": {},
      "status": "pending"
    }
  }
}
```
