run-cmd
Runs a single shell command on a specified host using stored credentials, so no password is sent, and requires confirmation plus a reason for disruptive or removal operations.
Instructions
dbabrain common.cli run-cmd: One shell command on a host.
server_id (or target) names the server; its connection or host login is completed from this node's inventory and encrypted secret store, so a request carries no password.
Changes or removes something. A command on the emergency-operations list takes confirm: "yes" and a reason in its request, as on the command line.
Request fields (pass them as request):
target: A label for the answer - the server_id. Nothing is looked up by it: common.cli reads no configuration (rules R09).
access: The host login, complete: an inline cmd_access - method (ssh|winrm), host, port, username, auth_type, key_file or password - with the machine's platform and runtime facts. The app that calls fills it from its own data...
platform: windows | linux, when access does not say.
profile: What the target is: os, os_major, runtime.
command: The command.
script: Or a script.
sudo: Through sudo.
timeout_seconds: How long to wait.
format: json | txt | raw.
confirm: The payload declares the operator agreed.
assume_yes: Unattended: take the typed yes as given.
authorized_by: Who approved it, for example {"channel": "telegram"}.
reason: Why, for the evidence.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "run-cmd"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| request | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |