Want a ready-made UI? See the Chat UI tutorial.
role, type, summary, data, and screenshot_url. See List session messages for all fields.
Cancel a running task
Usestop(strategy="task") to cancel the current task without destroying the session. The session goes back to idle and can accept a new task.
Manual polling
If you need full control over the polling loop (e.g. custom interval, filtering):Related
- Live preview & recording — embed the browser alongside your message stream
- Follow-up tasks — chain multiple tasks in one session while streaming each