browser

package
v0.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 15, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package browser gives the agent a real browser via the Chrome DevTools Protocol (chromedp): it attaches to the user's running Chrome/Chromium/ Brave when a DevTools port is open, otherwise launches a managed instance — visible by default, so the user can watch the agent work. Build with -tags nobrowser to strip the whole suite from the binary.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindBrowserBinary

func FindBrowserBinary(configured string) (string, error)

FindBrowserBinary locates a Chromium-family binary.

func NewTools

func NewTools(cfg config.BrowserConfig, workspace string) ([]tools.Tool, func())

NewTools returns the browser tool suite sharing one session.

Types

type Session

type Session struct {
	// contains filtered or unexported fields
}

Session lazily owns one browser connection shared by all browser tools.

func NewSession

func NewSession(cfg config.BrowserConfig, workspace string) *Session

func (*Session) Close

func (s *Session) Close()

Close shuts the managed browser down.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL