Taking a Session's Remote Control
Navigate complex UIs by giving control to the end-user
Many use cases require direct interaction with the running Session or can benefit from direct debugging
from the local Browser.
This guide covers getting a debuggerFullscreenUrl
to add a human in the loop of an AI Agent’s flow.
Getting Session Live Debug URLs
Getting Session Live Debug URLs is achieved by using the Session Live Debug URLs endpoint:
Start a Session
Use the Session API to create a new session.
Request a debug connection URL
Then, use the Session API debug
endpoint to get the
debuggerFullscreenUrl
.
Open the Session from your local Chrome browser
Finally, open the debuggerFullscreenUrl
URL in Chrome to start taking action
on the session.
Unblock complex UI scenarios by giving control to the end-user
While Browserbase helps deal with common scraping problems (anti-bot mechanism, captchas, reliably download files), some scenarios remain hard to automate for technical or data privacy reasons.
Dealing with iframe can be challenging as the loaded content might be external and could change without notice, adding another fold of scraping complexity. Interacting with iframes can be delegated to the end user by forwarding the remote control URL.
Dealing with user credentials is another complex scenario as the end-user might prefer to fill out its credentials directly on the website instead of storing them elsewhere.
Let’s look at the last scenario with an AI Agent for Amazon wishlists.
Pause our automation while the user enters its credentials
Our AI Agent tries to find the best prices for items on a user’s Amazon
wishlist; below is the retrieveAmazonWishlistItems()
function responsible to
gather the items:
Was this page helpful?