Documentation
¶
Index ¶
- type BrowserAgent
- type PageActions
- func (p *PageActions) Close()
- func (p *PageActions) DoubleClick(x, y int)
- func (p *PageActions) HoldKey(key string, duration float64)
- func (p *PageActions) Key(key string)
- func (p *PageActions) LastFrame() []byte
- func (p *PageActions) LeftClick(x, y int, modifiers string)
- func (p *PageActions) LeftClickDrag(sx, sy, ex, ey int)
- func (p *PageActions) LeftMouseDown(x, y int)
- func (p *PageActions) LeftMouseUp(x, y int)
- func (p *PageActions) MiddleClick(x, y int)
- func (p *PageActions) MouseMove(x, y int)
- func (p *PageActions) RightClick(x, y int)
- func (p *PageActions) Scroll(x, y int, direction string, amount int)
- func (p *PageActions) TripleClick(x, y int)
- func (p *PageActions) TypeText(text string)
- func (p *PageActions) Wait()
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
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) TripleClick ¶
func (p *PageActions) TripleClick(x, y int)
func (*PageActions) TypeText ¶
func (p *PageActions) TypeText(text string)
func (*PageActions) Wait ¶
func (p *PageActions) Wait()
Click to show internal directories.
Click to hide internal directories.