vyos_config_exists
Check whether a VyOS configuration path currently exists and return an existence flag, so you can verify paths and avoid empty-configuration errors before applying desired state.
Instructions
Check whether a configuration path currently exists.
Returns {"exists": bool}. Use this before a desired-state apply to avoid the "empty configuration" error on fresh systems.
Args: path: Configuration path (list or space-separated string).
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": {
"path": "<path>"
},
"name": "vyos_config_exists"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |