Run a User Script
user_script_runRun a saved Unraid User Scripts script over SSH with required confirmation and risk acknowledgment, then return its exit code, stdout, and stderr.
Instructions
⚠ Runs one User Scripts plugin script by name over SSH — user scripts are arbitrary code, executed here as the SSH user (typically root). Requires confirm: true AND acknowledge_risk: true. The flash drive is mounted non-executable, so the script is copied to a temp file (CRs stripped) and run via bash, exactly like the plugin's own runner. Get names from user_script_list; a non-zero exit is reported faithfully, not as a tool error. Waits for the script to finish and returns its exit code, stdout, and stderr. For a one-off command that is not a saved script use shell_exec instead.
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": "user_script_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Script name exactly as returned by user_script_list (its folder name). | |
| confirm | No | Set `true` only after the user approves this specific change; otherwise the tool refuses or prompts them. | |
| response_format | No | `detailed` returns full JSON instead of readable text. | concise |
| timeout_seconds | No | Seconds to wait for the script; on timeout the call fails but the script may keep running on the host. | |
| acknowledge_risk | No | Set `true` only after the user accepts running arbitrary code as the SSH user; needed on every call. |