run_command_as_admin
Run shell commands with full Administrator privileges. Triggers a Windows UAC prompt for approval when needed, then returns the command output and exit code.
Instructions
Run a shell command with Administrator privileges.
If the server is not already elevated this triggers a Windows UAC prompt that the user must approve. Output is captured and returned. This runs commands with full administrative rights - use with care.
Args: params (RunAsAdminInput): the command line and a timeout.
Returns: str: JSON {"ok": bool, "returncode": int, "output": "...", "elevated_prompt": bool}.
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": {
"params": "<params>"
},
"name": "run_command_as_admin"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |