Create folder
Create a folder, with missing parent folders.
MCP tool nextcloud_write → create_folder
write
Creates a folder at the path, and any parent folders that are missing. If the folder already exists, nothing changes and the call says so. create_folder runs without asking first: it reaches no one and an empty folder is removed with one click in the Files app.
Parameters
| Name | Type | Description |
|---|---|---|
| path string required | string | Path inside your files, starting with a slash, e.g. '/Clients/Acme/proposal.pdf'. |
tools/call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "nextcloud_write",
"arguments": {
"operation": "create_folder",
"arguments": {
"path": "/Clients/Acme/proposal.pdf"
}
}
}
} Example response
{
"content": [
{
"type": "text",
"text": "{ ... same JSON as structuredContent ... }"
}
],
"structuredContent": {
"path": "/Clients/Acme/Contracts",
"status": "created"
},
"isError": false
}