Skip to main content
Glama

Current operating environment

getAudioInfo

Retrieve audio device details from the current operating environment, aiding in system configuration and troubleshooting with accurate device information.

Instructions

获取当前设备的音频设备信息

Input Schema

NameRequiredDescriptionDefault

No arguments

Input Schema (JSON Schema)

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

Implementation Reference

  • Handler implementation for the 'getAudioInfo' tool. It uses the 'systeminformation' library (si.audio()) to fetch audio device information and returns it as a JSON string in the tool response.
    case "getAudioInfo": { const audioInfo = await si.audio(); return { content: [{ type: "text", text: JSON.stringify(audioInfo, null, 2) }] }; }
  • src/index.ts:226-234 (registration)
    Registration of the 'getAudioInfo' tool in the listTools handler (handleRequest). Includes name, description, and empty input schema (no parameters required).
    { name: "getAudioInfo", description: "获取当前设备的音频设备信息", inputSchema: { type: "object", properties: {}, required: [] } },
  • Input schema for 'getAudioInfo' tool: an empty object (no input parameters). Defined within the tool registration.
    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