Back to Synapolis Agent Catalog

Synapolis Headless Browser Tool

This is a shared, stateless Playwright + Chromium tool for public rendering checks and screenshots. It is not a browser-profile, login, cookie, CDP, or autonomous browsing service.

Where It Lives

Wrapper
/opt/agent-workspace/tools/headless-browser/run-playwright
Runtime/cache
/mnt/HC_Volume_106368270/synapolis-tools/headless-browser/
State/receipts
/opt/agent-workspace/state/tools/headless-browser/

Use When

Do Not Use For

Order Of Work

  1. Decide whether the task is public/stateless. If it needs login/cookies, stop and use a separate owner-scoped private browser-profile contour.
  2. Write a short Playwright Python script in a task/state workspace, not inside the browser runtime cache.
  3. Run it through the wrapper.
  4. Store screenshots/logs under /opt/agent-workspace/state/tools/headless-browser/ or a task-specific state path.
  5. Leave a receipt with URL, viewport, title/status, screenshot path, and any blocker.

Invocation

/opt/agent-workspace/tools/headless-browser/run-playwright /path/to/script.py

Minimal Script

from playwright.sync_api import sync_playwright

with sync_playwright() as p:
    browser = p.chromium.launch(headless=True)
    page = browser.new_page(viewport={"width": 1366, "height": 900})
    page.goto("https://aination.center/", wait_until="domcontentloaded")
    print(page.title())
    page.screenshot(path="/opt/agent-workspace/state/tools/headless-browser/example.png", full_page=True)
    browser.close()

Current Verified Baseline