browser

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BrowserAgent

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

func NewBrowserAgent

func NewBrowserAgent(apiKey string) *BrowserAgent

func (*BrowserAgent) Start

func (a *BrowserAgent) Start(ctx context.Context) error

type PageActions

type PageActions struct {
}

PageActions defines actions that can be taken on a browser page. This is a minimal representation to satisfy the Anthropic computer_use tool.

func NewPageActions

func NewPageActions() *PageActions

func (*PageActions) Close

func (p *PageActions) Close()

func (*PageActions) DoubleClick

func (p *PageActions) DoubleClick(x, y int)

func (*PageActions) HoldKey

func (p *PageActions) HoldKey(key string, duration float64)

func (*PageActions) Key

func (p *PageActions) Key(key string)

func (*PageActions) LastFrame

func (p *PageActions) LastFrame() []byte

func (*PageActions) LeftClick

func (p *PageActions) LeftClick(x, y int, modifiers string)

func (*PageActions) LeftClickDrag

func (p *PageActions) LeftClickDrag(sx, sy, ex, ey int)

func (*PageActions) LeftMouseDown

func (p *PageActions) LeftMouseDown(x, y int)

func (*PageActions) LeftMouseUp

func (p *PageActions) LeftMouseUp(x, y int)

func (*PageActions) MiddleClick

func (p *PageActions) MiddleClick(x, y int)

func (*PageActions) MouseMove

func (p *PageActions) MouseMove(x, y int)

func (*PageActions) RightClick

func (p *PageActions) RightClick(x, y int)

func (*PageActions) Scroll

func (p *PageActions) Scroll(x, y int, direction string, amount int)

func (*PageActions) TripleClick

func (p *PageActions) TripleClick(x, y int)

func (*PageActions) TypeText

func (p *PageActions) TypeText(text string)

func (*PageActions) Wait

func (p *PageActions) Wait()

Jump to

Keyboard shortcuts

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