Create User Share
share_createCreates a new Unraid user share and its directory, verifies the saved configuration, and refuses existing or reserved names; requires confirmation and risk acknowledgment.
Instructions
⚠ Creates a user share (and its /mnt/user/ directory) through emhttpd (the same form the web UI submits, via emcmd over SSH) and verifies it by re-reading /boot/config/shares/.cfg. Refuses a name that already exists (use share_edit to change an existing share) and reserved, disk, and pool names. Omitted settings default to highwater allocation and useCache no; SMB settings are submitted only when smbExport or smbSecurity is passed. Requires confirm: true AND acknowledge_risk: true, plus SSH. The GraphQL API has no share mutations.
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>"
},
"name": "share_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name for the new share: letters, digits, dot, underscore, hyphen; at most 40 characters; no leading dot. | |
| comment | No | Free-text comment stored on the share (Unraid's `shareComment` setting). | |
| confirm | No | Set `true` only after the user approves this specific change; otherwise the tool refuses or prompts them. | |
| useCache | No | `no` writes straight to the array; `yes` writes to the pool and the mover moves files to the array; `prefer` keeps files on the pool; `only` uses the pool alone. | |
| allocator | No | Where new files land: `highwater` fills the lowest-numbered disk down to a stepped free-space mark, `fillup` fills it to its minimum free space, `mostfree` picks the emptiest disk. | |
| cachePool | No | Name of an existing cache pool; an unknown name is refused with the valid pools. | |
| smbExport | No | SMB export: `-` = not exported, `e` = exported, `eh` = exported but hidden. | |
| smbSecurity | No | SMB security mode controlling who can reach the share (`shareSecurity`). | |
| acknowledge_risk | No | Set `true` only after the user accepts the risk; needed with `confirm` on every call. |