compare_version
Compare two JUNOS version strings to determine which is newer. Returns greater than, equal to, or less than results without requiring a device connection.
Instructions
Compare two JUNOS version strings.
Returns whether left is greater than, equal to, or less than right. No device connection required.
Args: left: First JUNOS version string (e.g., "22.4R3-S6.5") right: Second JUNOS version string (e.g., "23.2R1.0")
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": {
"left": "<left>",
"right": "<right>"
},
"name": "compare_version"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| left | Yes | ||
| right | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |