开发者可以通过 REST API 精确控制 Bytebot 执行任务,以下是常见操作示例:
- Criação de tarefas: Uso
curl -X POST http://localhost:9991/tasks
发送 JSON 指令,如{"description": "搜索航班", "type": "browser_task"}
. - 检查任务状态: através de
curl http://localhost:9991/tasks/{task_id}
获取任务状态。 - 控制键盘或鼠标:发送指令如
{"action": "type_text", "text": "Hello, Bytebot!"}
模拟键盘输入。
API 提供了灵活的控制方式,适合开发者构建复杂的工作流程。
Essa resposta foi extraída do artigoBytebot: automatizando tarefas de desktop em contêineres Linux com linguagem naturalO