MCPcopy Create free account

hub / github.com/anxuanzi/bua / functions

Functions249 in github.com/anxuanzi/bua

FunctionGetPageInfo
GetPageInfo returns information about the current page state.
screenshot/screenshot.go:344
MethodGetRole
()
browser/page.go:697
MethodGetRole
GetRole implements ElementInfo interface for screenshot annotations.
dom/element.go:127
MethodGetScreenshotPaths
GetScreenshotPaths returns all screenshot paths from this run.
agent/agent.go:598
FunctionGetStealthLaunchFlags
GetStealthLaunchFlags returns Chrome flags for stealth mode.
browser/stealth.go:299
MethodGetSteps
GetSteps returns all executed steps.
agent/agent.go:462
MethodGetSuccessRate
GetSuccessRate calculates the success rate of actions.
agent/history.go:168
MethodGetTagName
()
browser/page.go:696
MethodGetTagName
GetTagName implements ElementInfo interface for screenshot annotations.
dom/element.go:124
MethodGetText
()
browser/page.go:698
MethodGetText
GetText implements ElementInfo interface for screenshot annotations.
dom/element.go:130
MethodGetTitle
GetTitle returns the current page title.
bua.go:196
MethodGetTitle
GetTitle returns the current page title.
browser/browser.go:308
MethodGetURL
GetURL returns the current page URL.
browser/browser.go:295
MethodGetWidth
GetWidth implements BoundingBoxInfo interface.
dom/element.go:35
MethodGetWidth
()
dom/element.go:208
MethodGetX
GetX implements BoundingBoxInfo interface.
dom/element.go:29
MethodGetX
()
dom/element.go:206
MethodGetY
GetY implements BoundingBoxInfo interface.
dom/element.go:32
MethodGetY
()
dom/element.go:207
FunctionHasContent
HasContent checks if the image has meaningful content (not mostly white).
screenshot/screenshot.go:290
MethodIsPageReady
IsPageReady checks if the current page is ready for screenshot capture.
browser/page.go:595
MethodIsStarted
IsStarted returns whether the agent has been started.
bua.go:207
MethodLen
Len returns the number of elements.
browser/page.go:670
MethodLen
Len returns the number of elements.
dom/element.go:185
MethodListTabs
ListTabs returns information about all open tabs.
browser/browser.go:321
MethodNavigate
Navigate opens a URL using the stored context.
bua.go:299
MethodNavigate
Navigate navigates the current page to a URL.
browser/page.go:17
MethodNewTab
NewTab opens a new tab using the stored context.
bua.go:304
MethodNewTab
NewTab creates a new tab and optionally navigates to a URL.
browser/browser.go:342
FunctionNewTokenBudget
NewTokenBudget creates a budget for a given model's context window.
agent/token.go:122
FunctionNewTokenCounter
NewTokenCounter creates a new token counter with default settings.
agent/token.go:16
MethodRun
Run executes a task using the stored context.
bua.go:294
MethodRun
Run executes a task and returns the result.
agent/agent.go:206
MethodScreenshotWithAnnotations
ScreenshotWithAnnotations takes a screenshot with element annotations. This is the main entry point for annotated screenshots.
browser/page.go:706
MethodSetMaxElements
SetMaxElements sets the maximum number of elements to extract.
browser/browser.go:450
MethodSetTask
SetTask sets the current task.
agent/message.go:54
MethodStart
Start launches the browser.
browser/browser.go:112
MethodSwitchTab
SwitchTab switches to a tab by ID.
browser/browser.go:389
MethodToJSON
ToJSON serializes the element map as JSON.
dom/serialize.go:183
MethodToMarkdown
ToMarkdown serializes the element map as markdown for documentation.
dom/serialize.go:153
MethodTruncateToTokenLimit
TruncateToTokenLimit truncates text to fit within a token limit. Returns the truncated text and whether truncation occurred.
agent/token.go:89
MethodWaitForPageReady
WaitForPageReady waits until the page is ready, with timeout.
browser/page.go:605
FunctionWaitUntilReady
WaitUntilReady waits until the page is ready for screenshot, with timeout.
screenshot/screenshot.go:314
MethodWithContext
WithContext returns a helper for chaining operations with context.
bua.go:283
Functionmain
()
tests/e2e/run_tests.go:61
Functionmain
()
examples/01_quick_start/main.go:13
Functionmain
()
examples/02_annotations/main.go:15
FunctiontestAnnotationDirectly
Direct low-level test using screenshot package
examples/02_annotations/main.go:137
← previous201–249 of 249, ranked by callers