execute_command
Send commands to a connected network device to retrieve information or change settings using user, enable, or config mode.
Instructions
Execute a command on a connected network device.
The device must be connected first using connect_device.
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": {
"host": "<host>",
"command": "<command>"
},
"name": "execute_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | IP address or hostname of the connected device | |
| command | Yes | Command to execute (e.g., "show version", "show ip interface brief") | |
| mode | No | Execution mode: user (default), enable (privileged), or config (configuration) | user |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |