Upload a small file
upload_fileSave content written in this chat as a file in a bucket, up to 5 MB. Nubbo passes it to the bucket and keeps nothing. For larger files use create_upload_link.
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": {
"bucketId": "<bucketId>",
"path": "<path>",
"content": "<content>"
},
"name": "upload_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path of the new file, such as "notes/summary.md" | |
| content | Yes | The file content | |
| bucketId | Yes | The bucket id | |
| conflict | No | When the path exists: fail (default), rename the new file, or replace the old one | |
| encoding | No | utf8 for text (default), base64 for binary content | |
| contentType | No | Such as "text/markdown" |