getAudioInfo
Retrieve audio device information from the current operating environment to identify available hardware and configurations.
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": "getAudioInfo"
}
}Input 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: [] } },