upload_file
Send base64-encoded file data to an app's file storage and return the URL where the file is served; intended for small files already encoded.
Instructions
Upload a file to the app's file storage from base64 data, and get the URL it is served from. For small files; from a local path or a URL the local server has upload_file_from_path and upload_file_from_url.
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": {
"appObjectId": "<appObjectId>",
"fileName": "<fileName>",
"base64Data": "<base64Data>"
},
"name": "upload_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileName | Yes | The file name with extension (e.g., "image.png") | |
| base64Data | Yes | Base64-encoded file data | |
| appObjectId | Yes | The app: its name or objectId (see list_apps) | |
| contentType | No | Content type (e.g., "image/png"). Will be guessed from extension if not provided. |