upload
Upload a file to MEFS decentralized storage by providing its base64-encoded content and name. Optionally set encryption key and public access. Returns the content identifier (CID).
Instructions
Upload a file to MEFS storage. The file must be provided as a base64 encoded string. Returns the CID (Mid) of the uploaded file.
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": {
"file": "<file>",
"name": "<name>"
},
"name": "upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | The content of the file encoded as a base64 string | |
| name | Yes | Name for the uploaded file (must include file extension for MIME type detection) | |
| key | No | Encryption key for the file (optional, defaults to f1d4a0b37124c3a7 if not public) | |
| public | No | Whether the file should be public (default: false) |