实践教程(1) 截图验证桌面 在 Qoder 中输入: plaintext 在 desktopCodexxx 桌面,截取当前屏幕。 结构化工具调用等价于: plaintext { "name": "screenshot", "arguments": { "desktopCode": "xxx" } } 创建测试目录 在 Qoder 中输入: plaintext 在 desktopCodexxx 桌面,创建一下 C:/aiusertest 文件夹。 结构化工具调用等价于: plaintext { "name": "createdirectory", "arguments": { "desktopCode": "xxx", "path": "C:/aiusertest" } } 写入文件 plaintext { "name": "writefile", "arguments": { "desktopCode": "xxx", "path": "C:/aiusertest/hello.txt", "mode": "overwrite", "content": "Hello from AIuse MCP" } } 读取文件 plaintext { "name": "readfile", "arguments": { "desktopCode": "xxx", "path": "C:/aiusertest/hello.txt", "offset": 0, "length": 0 } } length 为 0 时表示读取从 offset 开始的剩余内容。 执行 GUI 操作 移动鼠标: plaintext { "name": "movemouse", "arguments": { "desktopCode": "xxx", "x": 500, "y": 300 } } 输入文本: plaintext { "name": "typetext", "arguments": { "desktopCode": "xxx", "text": "Hello from AIuse MCP" } } 排查建议 如果没有看到工具列表,请检查: npx 是否可用。 MCP Server 包名是否正确。 CTGAPIKEY 和 CTGAPISECRET 是否填写正确。 AccessKey 是否已关联目标云电脑。 云电脑是否在线。 如果工具调用失败,请检查: 指令或工具参数中是否包含 desktopCode。 文件路径是否存在或可写。 鼠标键盘操作前是否已通过截图确认界面状态。
来自: