Create document
nextcloud_create_documentCreate a new document at a specified path, with the file extension selecting the document type and an optional template; everyone with file access can edit it together in real time.
Instructions
Create one new document at path; the extension picks the type
(.docx, .xlsx, .pptx, .odg, .md).
POST /ocs/v2.php/apps/files/api/v1/templates/create
template_path is a template filename from
list_document_templates; omitted, the document starts empty. Everyone
with access to the file edits it together in real time.
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": "nextcloud_create_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| template_path | No |