run_show_command
Run read-only show commands on Cisco IOS, IOS-XE, and Nexus switches over SSH. Fetch device state and configuration securely using privilege separation and a fail-closed allowlist.
Instructions
Run an arbitrary read-only 'show' command on a device.
Only 'show' commands are permitted; the server rejects anything else. On IOS/IOS-XE, 'show running-config' is the only command that escalates to the privilege-15 account -- everything else, and every command on NX-OS, uses the read-only account.
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": {
"device": "<device>",
"command": "<command>"
},
"name": "run_show_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | Yes | ||
| command | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |