getGraphicsInfo
Retrieve detailed graphics card specifications from the current device to identify hardware capabilities and troubleshoot display issues.
Instructions
获取当前设备的显卡信息
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:642-650 (handler)The handler for the 'getGraphicsInfo' tool. It uses the 'systeminformation' library (si.graphics()) to fetch graphics card information and returns it as a JSON-formatted text response.case "getGraphicsInfo": { const graphicsInfo = await si.graphics(); return { content: [{ type: "text", text: JSON.stringify(graphicsInfo, null, 2) }] }; }
- src/index.ts:199-207 (registration)The registration of the 'getGraphicsInfo' tool in the list of available tools returned by handleRequest. Includes name, description, and input schema (empty object).{ name: "getGraphicsInfo", description: "获取当前设备的显卡信息", inputSchema: { type: "object", properties: {}, required: [] } },
- src/index.ts:202-206 (schema)The input schema for the 'getGraphicsInfo' tool, which requires no parameters (empty object). Part of the tool registration.inputSchema: { type: "object", properties: {}, required: [] }