Skip to main content
Glama

Current operating environment

getUsbInfo

Retrieve USB device information from the current operating environment to monitor connected hardware and ensure system compatibility.

Instructions

获取当前设备的 USB 设备信息

Input Schema

NameRequiredDescriptionDefault

No arguments

Input Schema (JSON Schema)

{ "properties": {}, "required": [], "type": "object" }

Implementation Reference

  • Handler for the getUsbInfo tool: retrieves USB device information using the systeminformation (si) library's usb() method and returns it as formatted JSON text.
    case "getUsbInfo": { const usbInfo = await si.usb(); return { content: [{ type: "text", text: JSON.stringify(usbInfo, null, 2) }] }; }
  • src/index.ts:235-243 (registration)
    Registration of the getUsbInfo tool in the tools list returned by handleRequest, including name, description, and empty input schema (no parameters required).
    { name: "getUsbInfo", description: "获取当前设备的 USB 设备信息", inputSchema: { type: "object", properties: {}, required: [] } },
  • Input schema for getUsbInfo tool: an empty object (no input parameters).
    inputSchema: { type: "object", properties: {}, required: [] }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/JackXuyi/env-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server