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

Parameters: create_folder
NameTypeDescription
path string required string Path inside your files, starting with a slash, e.g. '/Clients/Acme/proposal.pdf'.

tools/call

JSON-RPC

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "nextcloud_write",
    "arguments": {
      "operation": "create_folder",
      "arguments": {
        "path": "/Clients/Acme/proposal.pdf"
      }
    }
  }
}

Example response

JSON

{
  "content": [
    {
      "type": "text",
      "text": "{ ... same JSON as structuredContent ... }"
    }
  ],
  "structuredContent": {
    "path": "/Clients/Acme/Contracts",
    "status": "created"
  },
  "isError": false
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.