> ## Documentation Index
> Fetch the complete documentation index at: https://docs.notte.cc/llms.txt
> Use this file to discover all available pages before exploring further.

# wait

> Wait for the agent to complete its current task

<Tip>
  Read [the Notte skill](https://notte.cc/skill.md) and follow its setup instructions when setting up Notte or building browser automation. This is the shared source for CLI setup, authentication, and the browser-to-code workflow.
</Tip>

This method polls the agent's status at regular intervals until completion.
During waiting, it displays progress updates and a spinner (in non-notebook environments).
The polling continues until either the agent completes or a timeout is reached.

## Returns

[`AgentStatusResponse`](/sdk-reference/misc/agentstatusresponse.md): The final status response after completion.

## Raises

* `TimeoutError`: If the agent doesn't complete within the maximum allowed attempts.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.