# Get external file

Tool: `veryfront__get_external_file`

Return external file. Requires project.integrations.read.

## Arguments

| Name                | Type                                    | Required | Description                                                                                                                                                                                            |
| ------------------- | --------------------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `provider`          | string                                  | Yes      | Storage provider accessed through the caller's own personal connection. A human caller is required; agent, run, and service-account credentials are refused. One of `onedrive`, `sharepoint`, `drive`. |
| `file_id`           | string · min length 1 · max length 1024 | Yes      | File ID from list\_external\_files.                                                                                                                                                                    |
| `project_reference` | string · min length 1                   |          | Project ID or slug. Requires project.integrations.read through the caller's own personal provider connection.                                                                                          |

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

## Example response

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\"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\"}"
      }
    ],
    "structuredContent": {
      "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"
    }
  }
}
```
