wait
Pause web automation workflows for specified seconds to manage timing between operations, handle rate limiting, and allow external processes to complete.
Instructions
Wait for a specified number of seconds before continuing.
Use this when you need to pause between operations, such as:
- Waiting between status checks to avoid rapid polling
- Giving a web task time to make progress
- Rate limiting your requests
- Waiting for external processes to complete
Args:
seconds: Number of seconds to wait (1-60)
Returns:
Dictionary containing:
- ok: Boolean indicating success
- waited_seconds: How long the wait lasted
- message: Confirmation message
Examples:
- wait(5) # Wait 5 seconds
- wait(10) # Wait 10 seconds
Best Practice:
Use this instead of immediately polling check_web_task multiple times.
Recommended wait time between status checks: 3-5 seconds.
Note: Maximum wait time is 60 seconds to prevent timeout issues.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
seconds | Yes |
Input Schema (JSON Schema)
{
"properties": {
"seconds": {
"title": "Seconds",
"type": "integer"
}
},
"required": [
"seconds"
],
"type": "object"
}