Documentation
¶
Index ¶
- func CleanupSession(agentID string) error
- func CreateBrowserSession(browserInstanceID, url, name string) (map[string]interface{}, error)
- func CreateSessionWithData(agentID string, initialURL string) (string, map[string]interface{}, error)
- func EnsureBrowserSession(operatorConfig *config.OperatorConfig) error
- func ExecuteBrowserCommand(sessionID, commandType string, commandData map[string]interface{}) (map[string]interface{}, error)
- func ExecuteVirtualCommand(sessionID string, cmdType string, params map[string]interface{}) (map[string]interface{}, error)
- func FindBrowserInstance(agentID string) (map[string]interface{}, error)
- func FindBrowserSession(agentID string) (map[string]interface{}, error)
- func GetOrCreateSession(agentID string, initialURL string) (string, error)
- func GetPendingURL() string
- func HandleComputerTool(input map[string]interface{}) (map[string]interface{}, error)
- func HandleHighQualityScreenshot(fullPage bool, quality int) (map[string]interface{}, error)
- func InitBrowserSession()
- func InitBrowserSessionOnEnable(operatorConfig *config.OperatorConfig)
- func SetPendingURL(url string)
- func SetSessionID(agentID, sessionID string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanupSession ¶
CleanupSession cleans up a browser session
func CreateBrowserSession ¶
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 ¶
FindBrowserInstance - legacy function (not used in virtual browser mode)
func FindBrowserSession ¶
FindBrowserSession - legacy function (not used in virtual browser mode)
func GetOrCreateSession ¶
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 ¶
HandleComputerTool handles Claude's computer tool requests
func HandleHighQualityScreenshot ¶
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.