files_upload
Create a new file in Nextcloud from text, base64, or a ChatGPT attachment, with chunked upload support for binary files.
Instructions
Create a new file from text, base64 or a ChatGPT attachment.
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": {
"path": "<path>"
},
"name": "files_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | ||
| path | Yes | New file path; must not exist | |
| final | No | Assemble after this chunk | |
| content | No | UTF-8 text; omit for binary | |
| upload_id | No | Continuation id | |
| chunk_index | No | Chunk number, starting at 1 | |
| total_bytes | No | Total binary size in bytes | |
| content_type | No | Binary MIME type | application/octet-stream |
| content_base64 | No | Base64 chunk for binary upload |