Skip to content
esc

Search pages and sections. Try a tool name, an error code, a route.

↑↓ navigate↵ openesc close

MCP · Tools

Tools: files

Three tools on the data plane. None requires a human. Descriptions are quoted as the agent reads them.

upload_file#

Upload a file to the project's storage. Provide the content as base64. Max 25 MB. visibility 'private' (default) is owner-scoped; 'public' is readable by a signed URL.

ParameterTypeRequiredMeaning
project_idstringyes
filenamestring, min 1yes
content_base64stringyesThe file bytes, base64-encoded.
content_typestringnoMIME type, e.g. image/png.
visibility"private" or "public"no

Calls POST /v1/projects/:pid/files with the decoded bytes. Content that is not valid base64 is refused before the call (line breaks are accepted, other characters are not). Every byte travels through the conversation, so this tool is for small files; 25 MB is the API's cap, not a recommendation. A file uploaded by an account key has no owner. Two uploads of the same file create two files.

list_files#

List the files stored in a project.

ParameterTypeRequired
project_idstringyes

Calls GET /v1/projects/:pid/files. Each file carries its url, an absolute signed link: one hour for a private file, no expiry for a public one. There is no tool to read a file's content — the URL is the way.

delete_file#

Delete a file from a project's storage by id.

ParameterTypeRequired
project_idstringyes
file_idstringyes

Calls DELETE /v1/projects/:pid/files/:fid. Every link to the file stops working immediately, public ones included — deleting is the only way to take a public link back. Deletions count towards the same 40-per-5-minutes budget as row deletions.