开发者可以通过 REST API 精确控制 Bytebot 执行任务,以下是常见操作示例:
- Creating Tasks: Use
curl -X POST http://localhost:9991/tasks
发送 JSON 指令,如{"description": "搜索航班", "type": "browser_task"}
The - 检查任务状态: By
curl http://localhost:9991/tasks/{task_id}
获取任务状态。 - 控制键盘或鼠标:发送指令如
{"action": "type_text", "text": "Hello, Bytebot!"}
模拟键盘输入。
API 提供了灵活的控制方式,适合开发者构建复杂的工作流程。
This answer comes from the articleBytebot: Automating Desktop Tasks in Linux Containers with Natural LanguageThe