# List uploads

Tool: `veryfront__list_uploads`

List the uploads the caller can see under an optional folder prefix, newest first by default, with the visible folders in a separate list. Requires project.uploads.read.

## Arguments

| Name                | Type                                    | Required | Description                                                                                                                                                                                                      |
| ------------------- | --------------------------------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `limit`             | integer · min 1 · max 100 · default 20  |          | Files scanned before visibility filtering (default 20, max 100); folders are separate and unpaginated.                                                                                                           |
| `path`              | string                                  |          | Folder prefix; supplied paths select direct-child files. Omit to list all project files.                                                                                                                         |
| `recursive`         | boolean · default true                  |          | Expand nested folders; does not change file recursion.                                                                                                                                                           |
| `sort_by`           | string                                  |          | Sort field: created\_at (default), name or size\_bytes (size is another spelling of it). Ties break by file ID ascending. One of `created_at`, `name`, `size_bytes`, `size`.                                     |
| `sort_order`        | string                                  |          | Sort direction: asc or desc (default). One of `asc`, `desc`.                                                                                                                                                     |
| `cursor`            | string · min length 1 · max length 4096 |          | Opaque continuation; copy unchanged with the same project/path/sort. Removed anchors require restart; live changes affect traversal. Legacy timestamps retain creation cutoff semantics and cannot recover ties. |
| `project_reference` | string                                  |          | Project ID or slug                                                                                                                                                                                               |

## 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__list_uploads",
    "arguments": {}
  }
}'
```

## Example response

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\"data\":[{\"id\":\"string\",\"file_id\":\"string\",\"path\":\"string\",\"file_name\":\"string\",\"name\":\"string\",\"size_bytes\":0,\"size\":0,\"content_type\":\"string\",\"status\":\"string\",\"url\":\"string\",\"created_at\":\"string\",\"updated_at\":\"string\",\"deleted_at\":\"string\",\"visibility\":\"project\",\"permission\":\"read\"}],\"page_info\":{\"self\":\"string\",\"first\":\"string\",\"next\":\"string\",\"prev\":\"string\"},\"folders\":[{\"path\":\"string\",\"visibility\":\"project\",\"permission\":\"read\",\"created_at\":\"string\"}]}"
      }
    ],
    "structuredContent": {
      "data": [
        {
          "id": "string",
          "file_id": "string",
          "path": "string",
          "file_name": "string",
          "name": "string",
          "size_bytes": 0,
          "size": 0,
          "content_type": "string",
          "status": "string",
          "url": "string",
          "created_at": "string",
          "updated_at": "string",
          "deleted_at": "string",
          "visibility": "project",
          "permission": "read"
        }
      ],
      "page_info": {
        "self": "string",
        "first": "string",
        "next": "string",
        "prev": "string"
      },
      "folders": [
        {
          "path": "string",
          "visibility": "project",
          "permission": "read",
          "created_at": "string"
        }
      ]
    }
  }
}
```
