uploadFile
Upload files to Directus CMS API via MCP Server using file URLs or encoded data, specifying file names, MIME types, storage locations, and optional titles.
Instructions
Upload a file to Directus
Input Schema
Name | Required | Description | Default |
---|---|---|---|
fileData | No | Base64 encoded file data (either fileUrl or fileData must be provided) | |
fileName | Yes | Name of the file | |
fileUrl | No | URL of the file to upload (either fileUrl or fileData must be provided) | |
mimeType | No | MIME type of the file | |
storage | No | Storage location (optional) | |
title | No | File title (optional) | |
token | No | Authentication token (default from config) | |
url | No | Directus API URL (default from config) |
Input Schema (JSON Schema)
You must be authenticated.
Other Tools from Directus MCP Server
Related Tools
- @pixelsock/directus-mcp
- @pixelsock/directus-mcp
- @pixelsock/directus-mcp
- @pixelsock/directus-mcp
- @pixelsock/directus-mcp