browser

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package browser provides browser automation tools for omniagent.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Headless bool
	UserData string
	Logger   *slog.Logger
}

Config configures the browser tool.

type Tool

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

Tool provides browser automation capabilities.

func New

func New(config Config) (*Tool, error)

New creates a new browser tool.

func (*Tool) Close

func (t *Tool) Close() error

Close closes the browser.

func (*Tool) Description

func (t *Tool) Description() string

Description returns the tool description.

func (*Tool) Execute

func (t *Tool) Execute(ctx context.Context, args json.RawMessage) (string, error)

Execute runs the browser tool.

func (*Tool) Name

func (t *Tool) Name() string

Name returns the tool name.

func (*Tool) Parameters

func (t *Tool) Parameters() map[string]interface{}

Parameters returns the JSON schema for tool parameters.

Jump to

Keyboard shortcuts

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