pauseWhen, the Agent can pause the run, tell you what it needs, and continue exactly where it left off once you reply. The reply can come from a person, your application, or another agent.
Enable pausing on a run
PasspauseWhen when you run an Agent. It describes when the Agent may pause, in your own words. Runs without it never pause.
Detect a paused run
When the Agent pauses, the run’s status becomesPAUSED. PAUSED is not terminal, so stop polling on it as well as on terminal statuses (see Run lifecycle):
Node.js
pause tool call whose input.message says what it needs and in what form. Read it with List run messages:
Resume the run
Call Resume a run with your reply intask:
202 with the run back in RUNNING. Poll it as before. It may pause again if the same conditions come up.
Pass secrets such as verification codes as variables rather than in task. The Agent types the %name% placeholder and Browserbase swaps in the real value as it types, so the value never enters the transcript. The resumed run doesn’t keep the original run’s variables, so re-supply any it needs.
A resumed run continues within the original run’s limits: its step budget and maximum duration count from when the run first started.
Responses and errors
Limits
- A paused run holds its browser session until the session times out: up to 15 minutes on free plans or 60 minutes on paid plans. Browserbase starts this timer when it creates the session. Pausing doesn’t reset the timer, so any browser use before the pause counts toward the limit. If you resume after the session expires, the run ends as
TIMED_OUT. - You can’t stop a paused run yet: Stop a run returns
409for it. Resume it and stop it, or let it expire.