getAudioInfo
Retrieve audio device information from the current operating environment to identify available hardware and configurations.
Instructions
获取当前设备的音频设备信息
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:669-677 (handler)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: [] } },