MCP工具汇总 Computer Use 工具 工具名 用途 guiscreenshot 截取远端桌面当前画面 guiscreeninfo 查询屏幕分辨率与鼠标位置 guimove 移动鼠标 guiclick 点击鼠标 guidrag 拖拽 guiscroll 滚轮滚动 guitype 输入文本 guikey 按键或组合键 guiwait 等待指定时长 各工具的参数说明与调用示例见 MCP Computer Use。 FileSystem 工具 工具名 用途 fslist 列出目录内容(单层) fsread 读取文件内容 fssearch 按名称搜索文件或目录 fsmkdir 创建目录 fswrite 写入文件 fsmove 移动或重命名文件、目录 fsdelete 删除文件或目录 fsupload 从宿主上传文件到远端 fsdownload 从远端下载文件到宿主 hostfiles 查看宿主传输目录 各工具的参数说明与调用示例见 MCP FileSystem。 返回结构 工具调用结果通过 content 数组返回,文本结果放在 type 为 text 的项中: plaintext { "content": [ { "type": "text", "text": "已移动 /home/ctyun/a.txt → /home/ctyun/archive/a.txt(策略 fail)。" } ], "structuredContent": { "sourcePath": "/home/ctyun/a.txt", "targetPath": "/home/ctyun/archive/a.txt", "moved": true, "conflictPolicy": "fail" } } 成功时同时返回 structuredContent,其中的字段与文本内容对应,便于调用方直接解析。截图类工具还会在 content 中追加 type 为 image 的项: plaintext { "content": [ { "type": "text", "text": "已截屏,画面 1920x1080。下一步操作请直接使用截图像素坐标。" }, { "type": "image", "data": " ", "mimeType": "image/png" } ], "structuredContent": { "width": 1920, "height": 1080, "bytes": 186432, "inlined": true } } 业务失败时 isError 为 true,文本以错误码开头,structuredContent 中包含 errorCode 和 message: plaintext { "content": [ { "type": "text", "text": "PATHNOTALLOWED: 路径不在允许范围内:/etc/hosts(允许的根目录:/home/ctyun)" } ], "structuredContent": { "errorCode": "PATHNOTALLOWED", "message": "路径不在允许范围内:/etc/hosts(允许的根目录:/home/ctyun)" }, "isError": true } 调用方应同时判断 isError 与 structuredContent.errorCode,不要只根据文本内容判断成功与否。