list_networks
Retrieve all virtual networks configured in the VergeOS virtualization platform for network management and monitoring.
Instructions
List all virtual networks in VergeOS
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_networks"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.js:138-140 (handler)Core handler function in VergeOSAPI class that executes the API request to list networks from /api/v4/vnets
async listNetworks() { return this.request("/api/v4/vnets?fields=most"); } - src/index.js:565-567 (registration)Tool dispatch/registration in the CallToolRequestSchema handler switch statement
case "list_networks": result = await api.listNetworks(); break; - src/index.js:366-372 (schema)Tool schema and registration definition in the TOOLS array used for list_tools
name: "list_networks", description: "List all virtual networks in VergeOS", inputSchema: { type: "object", properties: {}, }, }, - src/index.js:365-372 (registration)Full tool object registration in TOOLS array
{ name: "list_networks", description: "List all virtual networks in VergeOS", inputSchema: { type: "object", properties: {}, }, }, - src/index.js:138-140 (handler)Also used in resource handler for vergeos://networks/list
async listNetworks() { return this.request("/api/v4/vnets?fields=most"); }