vyos_raw_api_call
Call any VyOS API endpoint directly with a raw operation payload for tasks not covered by higher-level tools. Write endpoints are blocked when read-only mode is enabled.
Instructions
Call any VyOS API endpoint directly with a raw operation payload.
Use this for anything the higher-level tools do not cover. Write endpoints (configure, config-file, reset, reconnect, reboot, poweroff, image, generate) are blocked when VYOS_READONLY=true.
Args: endpoint: Endpoint name without the leading slash, e.g. "retrieve", "configure", "show", "generate", "config-file", "reset", "image". data: The operation object (or list of objects for /configure), e.g. {"op": "showConfig", "path": ["firewall"]} or [{"op": "set", "path": ["interfaces","dummy","dum1","address","10.0.0.1/32"]}]. confirm_time: Optional commit-confirm window (minutes) for write endpoints. include_secrets: Return results unredacted (default False).
Returns the unwrapped "data" field of the VyOS response envelope.
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": {
"endpoint": "<endpoint>",
"data": "<data>"
},
"name": "vyos_raw_api_call"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| endpoint | Yes | ||
| confirm_time | No | ||
| include_secrets | No |