list_networks
Retrieve all virtual networks configured in the VergeOS virtualization platform for network management and monitoring.
Instructions
List all virtual networks in VergeOS
Input Schema
TableJSON 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/vnetsasync listNetworks() { return this.request("/api/v4/vnets?fields=most"); }
- src/index.js:565-567 (registration)Tool dispatch/registration in the CallToolRequestSchema handler switch statementcase "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_toolsname: "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/listasync listNetworks() { return this.request("/api/v4/vnets?fields=most"); }