/**
* Tool: system_info
* Returns system and platform information
*/
import os from "os";
export const systemInfoTool = async () => {
return {
platform: process.platform,
arch: process.arch,
nodeVersion: process.version,
osType: os.type(),
osRelease: os.release(),
totalMemory: `${Math.round(os.totalmem() / (1024 * 1024))} MB`,
freeMemory: `${Math.round(os.freemem() / (1024 * 1024))} MB`,
cpuCount: os.cpus().length,
uptime: `${Math.round(os.uptime() / 3600)} hours`,
};
};
export const systemInfoToolDefinition = {
name: "system_info",
description: "Returns system and platform information (OS type, memory, CPU, Node.js version)",
inputSchema: {
type: "object",
properties: {},
required: [],
},
};
//# sourceMappingURL=system_info.js.map