veryfront__import_external_file
Requires project.uploads.write.
Access
No external-service connection is required. Use a Veryfront credential with access to the requested resources.
Call type: Can change resources.
Arguments
| Field | Type | Required | Description and constraints |
|---|---|---|---|
project_reference | string | No | Project ID or slug. Requires project.uploads.write and destination upload edit permission; quota and plan limits apply. Uses 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. Values: "onedrive", "sharepoint", "drive". |
file_id | string | Yes | File ID from list_external_files Minimum length: 1. Maximum length: 1024. |
base_path | string | No | Older name for folder_path. Destination folder path prefix in project object storage (e.g., "my-docs" → "my-docs/{filename}"). Defaults to "external-imports/{timestamp}_{filename}". |
folder_path | string | No | Destination folder inside project Uploads, relative (no leading "/"). Defaults to "external-imports" with a timestamped name. Minimum length: 1. |
timestamp_prefix | boolean | No | Prefix the stored name with a timestamp. Defaults to true when no folder is given, false otherwise. |
visibility | string | No | Visibility of the new upload: "project", "public" or "private". Omitted, the upload inherits the destination folder's visibility. Setting it needs upload admin access on the destination, and "public" a paid plan; a refusal imports nothing. Values: "project", "public", "private". |
idempotency_key | string | No | Optional key of 1-128 characters without whitespace. Retrying with the same key and arguments within 24 hours returns the first result instead of creating another item; the same key with different arguments is refused. Minimum length: 1. Maximum length: 128. |
Example request
Send this JSON-RPC request through an initialized MCP client. Replace sample identifiers and values before calling the tool. See MCP client setup.
request.json
1{2 "jsonrpc": "2.0",3 "id": 1,4 "method": "tools/call",5 "params": {6 "name": "veryfront__import_external_file",7 "arguments": {8 "provider": "onedrive",9 "file_id": "example"10 }11 }12}Result
The published output shape is summarized below. Inspect both the MCP response content and isError when handling a call.
| Field | Type | Required | Description and constraints |
|---|---|---|---|
message | string | Yes | Agent-readable status message or rendered content for the external storage operation. |
upload | object | Yes | The upload the file was copied into. |
source | object | Yes | The provider file that was imported. |
Full schemas
input-schema.json
1{2 "type": "object",3 "properties": {4 "project_reference": {5 "type": "string",6 "description": "Project ID or slug. Requires project.uploads.write and destination upload edit permission; quota and plan limits apply. Uses the caller's own personal provider connection."7 },8 "provider": {9 "type": "string",10 "enum": [11 "onedrive",12 "sharepoint",13 "drive"14 ],15 "description": "Storage provider accessed through the caller's own personal connection. A shared project connection is not used."16 },17 "file_id": {18 "type": "string",19 "minLength": 1,20 "maxLength": 1024,21 "description": "File ID from list_external_files"22 },23 "base_path": {24 "type": "string",25 "description": "Older name for folder_path. Destination folder path prefix in project object storage (e.g., \"my-docs\" → \"my-docs/{filename}\"). Defaults to \"external-imports/{timestamp}_{filename}\"."26 },27 "folder_path": {28 "type": "string",29 "minLength": 1,30 "description": "Destination folder inside project Uploads, relative (no leading \"/\"). Defaults to \"external-imports\" with a timestamped name."31 },32 "timestamp_prefix": {33 "type": "boolean",34 "description": "Prefix the stored name with a timestamp. Defaults to true when no folder is given, false otherwise."35 },36 "visibility": {37 "type": "string",38 "enum": [39 "project",40 "public",41 "private"42 ],43 "description": "Visibility of the new upload: \"project\", \"public\" or \"private\". Omitted, the upload inherits the destination folder's visibility. Setting it needs upload admin access on the destination, and \"public\" a paid plan; a refusal imports nothing."44 },45 "idempotency_key": {46 "type": "string",47 "minLength": 1,48 "maxLength": 128,49 "pattern": "^\\S+$",50 "description": "Optional key of 1-128 characters without whitespace. Retrying with the same key and arguments within 24 hours returns the first result instead of creating another item; the same key with different arguments is refused."51 }52 },53 "required": [54 "provider",55 "file_id"56 ],57 "additionalProperties": false,58 "description": "Arguments for the import_external_file tool.",59 "$schema": "http://json-schema.org/draft-07/schema#"60}output-schema.json
1{2 "type": "object",3 "properties": {4 "message": {5 "type": "string",6 "description": "Agent-readable status message or rendered content for the external storage operation."7 },8 "upload": {9 "type": "object",10 "properties": {11 "id": {12 "type": "string",13 "minLength": 1,14 "maxLength": 1024,15 "description": "Unique identifier for the returned record."16 },17 "project_id": {18 "$ref": "#/properties/upload/properties/id",19 "description": "Project identifier associated with this result."20 },21 "path": {22 "type": "string"23 },24 "name": {25 "type": "string",26 "description": "Stored provider file name. Google Docs and Slides export as PDF; Sheets export as XLSX, retaining the exported extension."27 },28 "mime_type": {29 "type": "string",30 "minLength": 131 },32 "size_bytes": {33 "type": "integer",34 "minimum": 0,35 "maximum": 900719925474099136 },37 "visibility": {38 "type": "string",39 "enum": [40 "project",41 "public",42 "private"43 ]44 }45 },46 "required": [47 "id",48 "project_id",49 "path",50 "name",51 "mime_type",52 "size_bytes",53 "visibility"54 ],55 "additionalProperties": false,56 "description": "The upload the file was copied into."57 },58 "source": {59 "type": "object",60 "properties": {61 "provider": {62 "type": "string",63 "enum": [64 "onedrive",65 "sharepoint",66 "drive"67 ]68 },69 "file_id": {70 "type": "string",71 "minLength": 1,72 "maxLength": 102473 }74 },75 "required": [76 "provider",77 "file_id"78 ],79 "additionalProperties": false,80 "description": "The provider file that was imported."81 }82 },83 "required": [84 "message",85 "upload",86 "source"87 ],88 "additionalProperties": false,89 "description": "Structured result returned by the import_external_file tool.",90 "$schema": "http://json-schema.org/draft-07/schema#"91}