Task status
Look forstatus_update events in the response. The agent_status field tells you what to do next:
Handling waiting status
When agent_status is waiting, the status_detail tells you what the agent needs:
waiting_for_event_type:
messageAskUser— The agent is asking a question. Reply with task.sendMessage. Do not usetask.confirmAction.- All other types — Confirm or reject via task.confirmAction. The
confirm_input_schemafield in the event is a JSON Schema describing the expectedinputformat — use it to validate or dynamically build the confirmation payload.
Using task.confirmAction
input format varies by waiting_for_event_type. The table below lists currently supported event types — new types may be added in the future. Always check the confirm_input_schema returned in each event for the definitive schema.
For event types that support
accept, passing accept: false will not produce any event — the task remains in waiting status. Exception: webdevRequestSecrets where accept: false explicitly rejects the request.Using My Browser
You can let the agent use your local browser. When the agent needs a browser during execution, it will trigger aneedConnectMyBrowser waiting event. Use browser.onlineList to get available clients, then select one via task.confirmAction: