getHardwareInfo
Retrieve hardware information for the current device, including manufacturing date, to analyze system specifications and configuration details.
Instructions
获取当前设备的硬件信息,包括生产日期等
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": "getHardwareInfo"
}
}Input 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: [] }