vyos_exists
Check if a VyOS configuration path exists to avoid errors when setting or deleting. Returns true or false.
Instructions
Check whether a configuration path exists.
Returns true/false. Useful before setting or deleting a path.
Args: params: path — config path segments to check
Returns: str: "true" or "false"
Examples: - Check if API is enabled: path=["service", "https", "api"] - Check if interface exists: path=["interfaces", "ethernet", "eth1"]
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": {
"params": "<params>"
},
"name": "vyos_exists"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |