opnsense_firmware_info
Retrieves OPNsense firmware version, architecture, and update status to assess system update needs.
Instructions
Get firmware version, architecture, and update status of the OPNsense system
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": "opnsense_firmware_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/firmware.ts:148-151 (handler)The handler for 'opnsense_firmware_info' — makes a GET request to '/core/firmware/info' and returns the result as formatted JSON.
case "opnsense_firmware_info": { const result = await client.get("/core/firmware/info"); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] }; } - src/tools/firmware.ts:37-43 (schema)Tool definition registration with name 'opnsense_firmware_info', description, and empty input schema (no parameters).
export const firmwareToolDefinitions = [ { name: "opnsense_firmware_info", description: "Get firmware version, architecture, and update status of the OPNsense system", inputSchema: { type: "object" as const, properties: {} }, }, - src/index.ts:33-33 (registration)Import of firmwareToolDefinitions and handleFirmwareTool from the firmware module.
import { firmwareToolDefinitions, handleFirmwareTool } from './tools/firmware.js'; - src/index.ts:66-66 (registration)Registration of handleFirmwareTool as the handler for all firmware tool definitions including 'opnsense_firmware_info'.
for (const def of firmwareToolDefinitions) toolHandlers.set(def.name, handleFirmwareTool);