opnsense_diag_system_info
Retrieve OPNsense firewall diagnostics: CPU, memory, uptime, disk, and software version status.
Instructions
Get system status information (CPU, memory, uptime, disk, versions)
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_diag_system_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/diagnostics.ts:139-143 (registration)Tool definition registration for 'opnsense_diag_system_info' with description and empty input schema.
{ name: "opnsense_diag_system_info", description: "Get system status information (CPU, memory, uptime, disk, versions)", inputSchema: { type: "object" as const, properties: {} }, }, - src/tools/diagnostics.ts:404-407 (handler)Handler implementation for 'opnsense_diag_system_info': calls client.get('/core/system/status') and returns JSON result.
case "opnsense_diag_system_info": { const result = await client.get("/core/system/status"); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] }; } - src/index.ts:28-28 (registration)Import of diagnosticsToolDefinitions and handleDiagnosticsTool from diagnostics.ts
import { diagnosticsToolDefinitions, handleDiagnosticsTool } from './tools/diagnostics.js'; - src/index.ts:42-42 (registration)Spread of diagnosticsToolDefinitions into the aggregated allToolDefinitions array.
...diagnosticsToolDefinitions, - src/index.ts:61-61 (registration)Registration of all diagnostics tool definitions (including opnsense_diag_system_info) to the shared handleDiagnosticsTool handler.
for (const def of diagnosticsToolDefinitions) toolHandlers.set(def.name, handleDiagnosticsTool);