Skip to main content
Glama
JackXuyi

Current operating environment

getAudioInfo

Retrieve audio device information from the current operating environment to identify available hardware and configurations.

Instructions

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler for the getAudioInfo tool. It uses si.audio() from the systeminformation library to fetch audio device information and returns it as a JSON-formatted text 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 response, including its name, description, and empty input schema.
    { name: "getAudioInfo", description: "获取当前设备的音频设备信息", 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