Skip to main content
Upload a file to Contree.

TL;DR

  • Use when: Single file, generated content
  • Returns: File UUID for use with run
  • Cost: No VM needed
  • Prefer: rsync for multiple files (has caching)

Parameters

*One of content, content_base64, or path is required.

Response

Examples

Text Content

Local File

Binary (Base64)

Using the Result

Pass the UUID to run via the files parameter:

Common Mistake

path reads from the local MCP-server filesystem — it does not set the file’s name in storage. The uploaded file is content-addressable and identified only by UUID. To place it at a specific path inside a container, pass the UUID to run’s files parameter:

See Also

  • rsync - For multiple files (with caching)
  • run - Use uploaded files
  • download - Download from images