opnsense_firmware_list_plugins
Retrieve a list of all OPNsense plugins, showing which are available and installed, along with their versions and current status.
Instructions
List all available and installed OPNsense plugins with their versions and status
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/firmware.ts:163-168 (handler)Handler for opnsense_firmware_list_plugins: calls GET /core/firmware/info via the OPNsenseClient and extracts the plugin/package list from the response.
case "opnsense_firmware_list_plugins": { const result = await client.get("/core/firmware/info"); const info = result as Record<string, unknown>; const plugins = (info.package ?? info.plugin ?? []) as unknown[]; return { content: [{ type: "text", text: JSON.stringify(plugins, null, 2) }] }; } - src/tools/firmware.ts:56-61 (registration)Tool definition registration for opnsense_firmware_list_plugins in the firmwareToolDefinitions array, defining its name, description, and empty inputSchema.
{ name: "opnsense_firmware_list_plugins", description: "List all available and installed OPNsense plugins with their versions and status", inputSchema: { type: "object" as const, properties: {} }, }, - src/client/opnsense-client.ts:28-35 (helper)The OPNsenseClient.get method used by the handler to perform the HTTP GET request to /core/firmware/info.
async get<T>(path: string): Promise<T> { try { const response = await this.http.get<T>(path); return response.data; } catch (error: unknown) { throw extractError(error, `GET ${path}`); } }