getHardwareInfo
Retrieve hardware information for the current device, including manufacturing date, to analyze system specifications and configuration details.
Instructions
获取当前设备的硬件信息,包括生产日期等
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:469-477 (handler)The handler case for getHardwareInfo tool that fetches system hardware information using systeminformation library (si.system()) and returns it as JSON text content.case "getHardwareInfo": { const hardwareInfo = await si.system(); return { content: [{ type: "text", text: JSON.stringify(hardwareInfo, null, 2) }] }; }
- src/index.ts:127-134 (registration)Registration of the getHardwareInfo tool in the listTools handler, including name, description, and empty input schema.{ name: "getHardwareInfo", description: "获取当前设备的硬件信息,包括生产日期等", inputSchema: { type: "object", properties: {}, required: [] }
- src/index.ts:130-134 (schema)Input schema for getHardwareInfo tool, which takes no parameters.inputSchema: { type: "object", properties: {}, required: [] }