ecp_files_upload
Uploads a file from the local computer to an ECP account, streaming text or binary data from disk. Use for files up to the upload limit; zip folders first, then upload the archive.
Instructions
Upload a file from this computer (where this MCP server runs) to the ECP account - any size up to ecp_files_upload_limit, text or binary (images, zips, videos). The file is read from disk and streamed to ECP, so use this instead of ecp_files_write for anything that isn't a small text edit. To upload a folder, zip it first, upload the zip, then ecp_files_extract it. Files outside the chat app's working folders and ECP_UPLOAD_DIRS need the user's approval in a prompt.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"local_path": "<local_path>",
"destination": "<destination>"
},
"name": "ecp_files_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_name | No | Name to save it as; defaults to the local file's name | |
| overwrite | No | Replace a file that already exists there. Default false: the upload fails instead. | |
| local_path | Yes | Absolute path of the file on this computer, e.g. /home/me/site/hero.jpg or ~/Downloads/site.zip | |
| destination | Yes | Folder on the ECP account to put it in, e.g. 'public_html' or 'apps/my-app'. Created if missing. |