Create an SMB share
omv_create_smb_shareStages an SMB (Samba/Windows/macOS) share for an existing OpenMediaVault shared folder, with guest access, read-only, browseable, and comment options; apply changes separately.
Instructions
Share an existing shared folder over SMB (Samba, Windows and macOS file sharing). Staged, not applied. Use it when asked "share Photos over SMB", "make it visible from Windows", or "add a Samba share"; for Linux clients, omv_create_nfs_share. Only guest access, read_only, browseable, and the comment are chosen here; every other SMB setting gets this server's fixed default (no recycle bin, dot files hidden, ACLs inherited, no host allow or deny list, no extra options; the README lists them). Refuses when the folder already has an SMB share (OMV allows one); the same arguments as that share return outcome unchanged. Creating a share does not enable a disabled SMB service; the detail says so. Apply with omv_apply_changes. 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": {
"shared_folder": "<shared_folder>"
},
"name": "omv_create_smb_share"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| guest | No | Guest access: no (a login is needed), allow (guests may connect too), only (guests only). | no |
| comment | No | A comment: one line of printable text, up to 200 characters. | |
| read_only | No | Make the share read-only for everyone. | |
| browseable | No | Show the share when the server's shares are browsed. | |
| shared_folder | Yes | The shared folder to share, by name, as omv_list_shared_folders shows it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| detail | Yes | ||
| outcome | Yes | ||
| pending | Yes |