getGraphicsInfo
Retrieve detailed graphics card information for the current device to diagnose or optimize system performance and compatibility.
Instructions
获取当前设备的显卡信息
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Input Schema (JSON Schema)
{
"properties": {},
"required": [],
"type": "object"
}
Implementation Reference
- src/index.ts:642-650 (handler)The handler case for the 'getGraphicsInfo' tool. It uses the systeminformation library (si.graphics()) to fetch graphics card information asynchronously and returns it formatted as JSON text in the standard MCP tool 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 tool registration/metadata in the listTools handler (handleRequest). Defines the tool name, Chinese description ('Get current device graphics info'), and an empty input schema (no parameters required).{ name: "getGraphicsInfo", description: "获取当前设备的显卡信息", inputSchema: { type: "object", properties: {}, required: [] } },
- src/index.ts:202-206 (schema)The input schema for 'getGraphicsInfo', which is an empty object (no input parameters). No output schema is explicitly defined.inputSchema: { type: "object", properties: {}, required: [] }