connect_device
Establish a persistent SSH or Telnet connection to network devices for command execution. Supports authentication and multiple platform drivers.
Instructions
Connect to a network device via SSH or Telnet.
Establishes a persistent connection for command execution.
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>",
"username": "<username>",
"password": "<password>"
},
"name": "connect_device"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | IP address or hostname of the device | |
| username | Yes | Username for authentication | |
| password | Yes | Password for authentication | |
| device_type | No | Platform driver: 'cisco_ios' (default), 'bdcom', or any netmiko device_type (e.g. cisco_xe, cisco_nxos, arista_eos). BDCOM switches must use 'bdcom'. | cisco_ios |
| protocol | No | Connection protocol (ssh or telnet) | ssh |
| port | No | Port number (default: 22 for SSH, 23 for Telnet) | |
| enable_password | No | Enable password for privileged mode (optional) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |