Skip to main content

Files

MCP tools for the Files module. See the Files module docs for permissions and data model.

list-files

List all files

Arguments

ArgumentTypeRequiredDescription
projectIdstringnoFilter files by project ID
limitnumbernoMaximum number of results to return
offsetnumbernoNumber of results to skip

create-file

Create a file

Arguments

ArgumentTypeRequiredDescription
projectIdstringnoPublic ID of the project. Optional when authenticating with a project-scoped API key, which defaults to the key's project; required otherwise.
prefixstringnoDirectory within the project (e.g. /images). Optional; defaults to / (root). Combined with filename to form the file's key (path).
filenamestringnoOriginal / download name and the key's leaf segment (e.g. logo.png).
contentTypestringnoMIME type of the file
sizenumbernoFile size in bytes
metadatastringnoJSON string with additional metadata

upload-file

Upload a file

Arguments

ArgumentTypeRequiredDescription
filestringyesFile content
projectIdstringnoProject ID to associate the file with. Optional when authenticating with a project-scoped API key, which defaults to the key's project; required otherwise.
prefixstringnoDirectory within the project (e.g. /images). Optional; defaults to / (root).
filenamestringnoOriginal / download name. Optional; defaults to the uploaded file's name.
metadatastringnoAdditional metadata as a JSON string

upload-file-base64

Upload a file using base64 encoding

Arguments

ArgumentTypeRequiredDescription
projectIdstringnoPublic ID of the project
contentstringyesBase64-encoded file content
prefixstringnoDirectory within the project (e.g. /documents). Optional; defaults to / (root).
filenamestringnoOriginal / download name and the key's leaf segment.
contentTypestringnoMIME type of the file
metadatastringnoJSON string with additional metadata

create-presigned-url

Create a presigned upload URL

Arguments

ArgumentTypeRequiredDescription
projectIdstringyesPublic ID of the project
prefixstringnoDirectory within the project (e.g. /documents). Optional; defaults to / (root).
filenamestringnoOriginal / download name and the key's leaf segment.
contentTypestringnoMIME type of the file to be uploaded

upload-file-with-token

Upload a file using an upload token

Arguments

ArgumentTypeRequiredDescription
tokenstringyesThe single-use upload token (e.g. upt_...)
contentstringnoBase64-encoded file content (alternative to multipart file)
filenamestringnoOriginal / download name (overrides the token's filename)
contentTypestringnoMIME type of the file (overrides the token's content type)
metadatastringnoJSON string with additional metadata

get-file

Get a file by ID

Arguments

ArgumentTypeRequiredDescription
fileIdstringyesFile ID

delete-file

Delete a file

Arguments

ArgumentTypeRequiredDescription
fileIdstringyesID of the file to delete

download-file

Download a file

Arguments

ArgumentTypeRequiredDescription
fileIdstringyesFile ID

update-file-metadata

Update file metadata

Arguments

ArgumentTypeRequiredDescription
fileIdstringyesFile ID
metadatastringnoNew metadata as a JSON string
prefixstringnoNew directory — moves the file. The resulting path (prefix + filename) must be unique within the project.
filenamestringnoNew filename — renames the key's leaf and the download name.

download-file-base64

Download file as base64

Arguments

ArgumentTypeRequiredDescription
fileIdstringyesFile ID

get-file-tags

Get file tags

Arguments

ArgumentTypeRequiredDescription
fileIdstringyesFile ID

replace-file-tags

Replace file tags

Arguments

ArgumentTypeRequiredDescription
fileIdstringyesFile ID

merge-file-tags

Merge file tags

Arguments

ArgumentTypeRequiredDescription
fileIdstringyesFile ID