Create a shared folder
omv_create_shared_folderCreates a named directory on a mounted OpenMediaVault filesystem so SMB and NFS shares can be made from it. Use it to add a shared folder on the NAS; changes are staged until applied.
Instructions
Create a shared folder: a named directory on a mounted filesystem, which SMB and NFS shares are made from. Use it when asked "make a folder called Backups on the NAS" or "add a shared folder"; to put it on the network, omv_create_smb_share or omv_create_nfs_share. filesystem is the filesystem's label or device file (omv_list_filesystems). OMV creates the directory on disk right away; the configuration change is staged and is applied only by omv_apply_changes (pending lists what is waiting). Refuses a name that already exists, a relative_path with '..' or a leading '/', and a mode OMV does not offer. Calling it again with the same name, path, comment, and filesystem as an existing folder returns outcome unchanged; the NAS does not report a folder's mode, so the mode is never compared (the detail says so when you asked for one). Needs OMV_ALLOW_WRITES=1.
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": {
"name": "<name>",
"filesystem": "<filesystem>"
},
"name": "omv_create_shared_folder"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Permissions of the new directory, as OMV offers them: 700, 750, 755, 770, 775 (the default), or 777 (everyone may read and write). | |
| name | Yes | The new shared folder's name: letters, digits, '.', '-', '_' (no spaces), up to 64 characters. | |
| comment | No | A comment: one line of printable text, up to 200 characters. | |
| filesystem | Yes | The mounted filesystem to create it on: its label (such as data1) or device file (such as /dev/sdb1), as omv_list_filesystems shows them. | |
| relative_path | No | The directory under the filesystem's mount point, such as media/ or video/films/; defaults to the name followed by '/'. No '..' and no leading '/'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| detail | Yes | ||
| outcome | Yes | ||
| pending | Yes |