xiaozhi-esp32-server/main/xiaozhi-server/test/js/config/default-mcp-tools.json
2026-01-26 03:56:40 -08:00

104 lines
7.3 KiB
JSON
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[
{
"name": "self.get_device_status",
"description": "Provides the real-time information of the device, including the current status of the audio speaker, screen, battery, network, etc.\nUse this tool for: \n1. Answering questions about current condition (e.g. what is the current volume of the audio speaker?)\n2. As the first step to control the device (e.g. turn up / down the volume of the audio speaker, etc.)",
"inputSchema": {
"type": "object",
"properties": {}
},
"mockResponse": {
"audio_speaker": {
"volume": 50,
"muted": false
},
"screen": {
"brightness": 80,
"theme": "light"
},
"battery": {
"level": 85,
"charging": false
},
"network": {
"connected": true,
"type": "wifi"
}
}
},
{
"name": "self.audio_speaker.set_volume",
"description": "Set the volume of the audio speaker. If the current volume is unknown, you must call `self.get_device_status` tool first and then call this tool.",
"inputSchema": {
"type": "object",
"properties": {
"volume": {
"type": "integer",
"minimum": 0,
"maximum": 100
}
},
"required": [
"volume"
]
},
"mockResponse": {
"success": true,
"volume": "${volume}",
"message": "音量已设置为 ${volume}"
}
},
{
"name": "self.screen.set_brightness",
"description": "Set the brightness of the screen.",
"inputSchema": {
"type": "object",
"properties": {
"brightness": {
"type": "integer",
"minimum": 0,
"maximum": 100
}
},
"required": [
"brightness"
]
},
"mockResponse": {
"success": true,
"brightness": "${brightness}",
"message": "亮度已设置为 ${brightness}"
}
},
{
"name": "live2d.smile",
"description": "让虚拟人做出微笑的动作。当用户说'笑一个'、'笑一下'、'给我笑一个'、'微笑'等时调用此工具。",
"inputSchema": {
"type": "object",
"properties": {}
}
},
{
"name": "live2d.wave",
"description": "让虚拟人做出招手的动作。当用户说'向我招招手'、'挥挥手'、'打个招呼'、'招手'等时调用此工具。",
"inputSchema": {
"type": "object",
"properties": {}
}
},
{
"name": "live2d.action",
"description": "触发虚拟人的指定动作。支持的动作包括:FlickUp(向上轻扫)、FlickDown(向下轻扫)、Tap(点击)、Tap@Body(身体点击)、Flick(轻扫)、Flick@Body(身体轻扫)等。当用户要求特定的虚拟人动作时调用此工具。",
"inputSchema": {
"type": "object",
"properties": {
"action": {
"type": "string",
"description": "动作名称,如:FlickUp, FlickDown, Tap, Tap@Body, Flick, Flick@Body"
}
},
"required": [
"action"
]
}
}
]