langchain/tools/playwright/utils.py/aget_current_page
async def aget_current_page(browser: AsyncBrowser) -> AsyncPage:
    if not browser.contexts:
        context = await browser.new_context()
        return await context.new_page()
    context = browser.contexts[0]  # Assuming you're using the default browser context
    if not context.pages:
        return await context.new_page()
    # Assuming the last page in the list is the active one
    return context.pages[-1]