Rename a Device
rename_deviceChanges a Packet Tracer device's display name used by other tools without altering its IOS hostname; use CLI commands to change the hostname.
Instructions
Change a device's display name (the name used by all other tools). This does not change the IOS hostname; use send_cli_command with "hostname X" for that.
Examples:
"Rename Router0 to R1"
"Call PC0 'Accounting-PC'"
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": {
"name": "<name>",
"new_name": "<new_name>"
},
"name": "rename_device"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Device display name as shown in Packet Tracer (e.g. 'Router0', 'PC1') | |
| new_name | Yes | Device display name as shown in Packet Tracer (e.g. 'Router0', 'PC1') |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |