operator

package
v1.33.73 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanupSession

func CleanupSession(agentID string) error

CleanupSession cleans up a browser session

func CreateBrowserSession

func CreateBrowserSession(browserInstanceID, url, name string) (map[string]interface{}, error)

CreateBrowserSession - legacy function (not used in virtual browser mode)

func CreateSessionWithData

func CreateSessionWithData(agentID string, initialURL string) (string, map[string]interface{}, error)

CreateSessionWithData creates a new session and returns both the session ID and full response data

func EnsureBrowserSession

func EnsureBrowserSession(operatorConfig *config.OperatorConfig) error

EnsureBrowserSession ensures browser session is active (no-op in virtual browser mode)

func ExecuteBrowserCommand

func ExecuteBrowserCommand(sessionID, commandType string, commandData map[string]interface{}) (map[string]interface{}, error)

ExecuteBrowserCommand - legacy function (not used in virtual browser mode)

func ExecuteVirtualCommand

func ExecuteVirtualCommand(sessionID string, cmdType string, params map[string]interface{}) (map[string]interface{}, error)

ExecuteVirtualCommand executes a command in a virtual browser session

func FindBrowserInstance

func FindBrowserInstance(agentID string) (map[string]interface{}, error)

FindBrowserInstance - legacy function (not used in virtual browser mode)

func FindBrowserSession

func FindBrowserSession(agentID string) (map[string]interface{}, error)

FindBrowserSession - legacy function (not used in virtual browser mode)

func GetOrCreateSession

func GetOrCreateSession(agentID string, initialURL string) (string, error)

GetOrCreateSession gets existing session or creates a new one

func GetPendingURL

func GetPendingURL() string

GetPendingURL retrieves and clears the pending URL for the current agent

func HandleComputerTool

func HandleComputerTool(input map[string]interface{}) (map[string]interface{}, error)

HandleComputerTool handles Claude's computer tool requests

func HandleHighQualityScreenshot

func HandleHighQualityScreenshot(fullPage bool, quality int) (map[string]interface{}, error)

HandleHighQualityScreenshot captures a high-quality screenshot with full-page support This is separate from the computer tool screenshot to allow explicit quality control and filesystem saving. The computer tool screenshot stays fast for navigation.

func InitBrowserSession

func InitBrowserSession()

InitBrowserSession initializes browser session if operator mode is enabled In virtual browser mode, sessions are created on-demand, so this is a no-op

func InitBrowserSessionOnEnable

func InitBrowserSessionOnEnable(operatorConfig *config.OperatorConfig)

InitBrowserSessionOnEnable initializes browser session when operator mode is enabled via config

func SetPendingURL

func SetPendingURL(url string)

SetPendingURL stores a URL to be used when creating the next browser session

func SetSessionID

func SetSessionID(agentID, sessionID string)

SetSessionID injects an existing session ID into the cache for reuse

Types

This section is empty.

Jump to

Keyboard shortcuts

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