# 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.

Risk: mutating.

## 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 | 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. |

## Call it

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "veryfront__create_upload",
    "arguments": {
      "path": "<path>",
      "size_bytes": "<size_bytes>"
    }
  }
}
```
