wait_for
CSS selector to wait for before returning the page content
How to use it
wait_for is exposed by the Webscraping Ai MCP Server MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the wait_for tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install Webscraping Ai MCP Server
npx @modelcontextprotocol/inspector node src/index.jsOther tools in Webscraping Ai MCP Server (10)
Country of the proxy to use (US by default). Supported countries: us, gb, de, it, fr, ca, es, ru, jp, kr, in
Your own proxy URL in "http://user:password@host:port" format
Type of device emulation. Supported values: desktop, mobile, tablet
Return error on 404 HTTP status on the target page (false by default)
Return error on redirect on the target page (false by default)
Execute on-page JavaScript using a headless browser (true by default)
Custom JavaScript code to execute on the target page
Maximum JavaScript rendering time in ms (2000 by default)
Type of proxy: datacenter, residential, or stealth (residential by default). Use stealth for the most heavily protected sites with advanced anti-bot detection — costs more than residential, see the pricing page.
Maximum web page retrieval time in ms (15000 by default, maximum is 30000)