开发者可以通过 REST API 精确控制 Bytebot 执行任务,以下是常见操作示例:
- Aufgaben erstellen: Verwendung
curl -X POST http://localhost:9991/tasks
发送 JSON 指令,如{"description": "搜索航班", "type": "browser_task"}
. - 检查任务状态: durch
curl http://localhost:9991/tasks/{task_id}
获取任务状态。 - 控制键盘或鼠标:发送指令如
{"action": "type_text", "text": "Hello, Bytebot!"}
模拟键盘输入。
API 提供了灵活的控制方式,适合开发者构建复杂的工作流程。
Diese Antwort stammt aus dem ArtikelBytebot: Automatisierung von Desktop-Aufgaben in Linux-Containern mit natürlicher SpracheDie