# List external files

Tool: `veryfront__list_external_files`

List external files. Requires project.integrations.read.

## Arguments

| Name                | Type                                    | Required | Description                                                                                                                                                                                     |
| ------------------- | --------------------------------------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `project_reference` | string                                  |          | Project ID or slug. Requires project.integrations.read 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 |          | Folder ID from a previous listing, or "root". Omit for the provider root. SharePoint sites are "sp-site:{siteId}".                                                                              |
| `path`              | string                                  |          | Older folder path selector; use folder\_id. Not together with folder\_id.                                                                                                                       |
| `query`             | string · min length 1 · max length 256  |          | Search text. Searches below folder\_id when given; SharePoint needs a site or folder to search.                                                                                                 |
| `cursor`            | string                                  |          | page\_info.next (or the "Pass cursor" value) from the previous page. Opaque cursors retain the original folder/path and query when omitted; explicit selectors must match the original listing. |
| `limit`             | integer · min 1 · max 200               |          | Maximum number of entries to request (max 200)                                                                                                                                                  |

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

## Example response

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\"message\":\"string\",\"data\":[{\"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\"}],\"page_info\":{\"self\":\"string\",\"first\":null,\"next\":\"string\",\"prev\":null}}"
      }
    ],
    "structuredContent": {
      "message": "string",
      "data": [
        {
          "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"
        }
      ],
      "page_info": {
        "self": "string",
        "first": null,
        "next": "string",
        "prev": null
      }
    }
  }
}
```
