getGraphicsInfo
Retrieve detailed graphics card specifications from the current device to identify hardware capabilities and troubleshoot display issues.
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": "getGraphicsInfo"
}
}Input 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: [] }