MCPcopy Create free account

hub / github.com/OTA-Tech-AI/web-agent-protocol / functions

Functions527 in github.com/OTA-Tech-AI/web-agent-protocol

↓ 1 callersMethod_setup_browser
Sets up and returns a Playwright Browser instance with anti-detection measures.
browser_use/browser/browser.py:299
↓ 1 callersMethod_setup_builtin_browser
Sets up and returns a Playwright Browser instance with anti-detection measures.
browser_use/browser/browser.py:246
↓ 1 callersMethod_setup_remote_cdp_browser
Sets up and returns a Playwright Browser instance with anti-detection measures. Firefox has no longer CDP support.
browser_use/browser/browser.py:156
↓ 1 callersMethod_setup_remote_wss_browser
Sets up and returns a Playwright Browser instance with anti-detection measures.
browser_use/browser/browser.py:169
↓ 1 callersMethod_setup_user_provided_browser
Sets up and returns a Playwright Browser instance with anti-detection measures.
browser_use/browser/browser.py:178
↓ 1 callersMethod_update_action_indices
Update action indices based on current page state. Returns updated action or None if element cannot be found.
browser_use/agent/service.py:1265
↓ 1 callersMethod_update_action_models_for_page
Update action models with page-specific actions
browser_use/agent/service.py:1482
↓ 1 callersMethod_update_state
Update and return state.
browser_use/browser/context.py:893
↓ 1 callersMethod_verify_llm_connection
Verify that the LLM API keys are working properly by sending a simple test prompt and checking that the response contains the expected answer.
browser_use/agent/service.py:1361
↓ 1 callersMethod_wait_for_stable_network
(self)
browser_use/browser/context.py:512
↓ 1 callersFunction_write_messages_to_file
Write messages to conversation file
browser_use/agent/message_manager/utils.py:106
↓ 1 callersFunction_write_response_to_file
Write model response to conversation file
browser_use/agent/message_manager/utils.py:125
↓ 1 callersMethodaction_results
Get all results from history
browser_use/agent/views.py:360
↓ 1 callersFunctionaddLoggingLevel
Comprehensively adds a new logging level to the `logging` module and the currently configured logging class. `levelName` becomes an attribute of
browser_use/logging_config.py:10
↓ 1 callersMethodadd_plan
(self, plan: Optional[str], position: int | None = None)
browser_use/agent/message_manager/service.py:169
↓ 1 callersFunctionanalyze_page_structure
Analyze and print the structure of a webpage with enhanced debugging
browser_use/dom/tests/debug_page_structure.py:11
↓ 1 callersFunctionask_llm
Send *prompt* to OpenAI and return the assistant text. Parameters ---------- prompt : str User prompt / question. system_prom
utils/llm.py:38
↓ 1 callersFunctionbuildDomTree
* Creates a node data object for a given node and its descendants.
browser_use/dom/buildDomTree.js:895
↓ 1 callersFunctioncheck_env_variables
Check if all required environment variables are set
browser_use/utils.py:318
↓ 1 callersFunctionchoose_template
Return the correct template file for a given action_type.
utils/action_processing.py:9
↓ 1 callersFunctioncleanUpNodeRegistry
()
chrome-extension/js/DOMListener.js:187
↓ 1 callersMethodcleanup_httpx_clients
Cleanup all httpx clients
browser_use/browser/browser.py:362
↓ 1 callersFunctioncleanup_webdriver_cache
Clean up webdriver cache directories.
run_replay.py:30
↓ 1 callersFunctioncloneVisible
* Recursively clone a node, but only include nodes that are visible in the viewport. * For element nodes, if the node itself is not visible (per isIn
chrome-extension/js/elementProcess.js:233
↓ 1 callersMethodconvert_dom_element_to_history_element
(dom_element: DOMElementNode)
browser_use/dom/history_tree_processor/service.py:16
↓ 1 callersFunctioncount_string_tokens
Count the number of tokens in a string using a specified model.
browser_use/dom/tests/extraction_test.py:12
↓ 1 callersFunctioncreate_history_gif
Create a GIF from the agent's history with overlaid task and goal text.
browser_use/agent/gif.py:20
↓ 1 callersFunctioncreate_mcp_server
Creates an MCP server file with the specified parameters. Args: ultimate_goal: The goal description for the MCP function
wap_replay/generate_mcp_server.py:48
↓ 1 callersMethodcreate_new_tab
Create a new tab and optionally navigate to a URL
browser_use/browser/context.py:1487
↓ 1 callersMethodcreate_procedural_memory
Create a procedural memory if needed based on the current step. Args: current_step: The current step number of the agent
browser_use/agent/memory/service.py:53
↓ 1 callersMethodcut_messages
Get current message list, potentially trimmed to max tokens
browser_use/agent/message_manager/service.py:247
↓ 1 callersFunctiondoesElementHaveInteractivePointer
(element)
browser_use/dom/buildDomTree.js:512
↓ 1 callersMethoddom_element_node_to_json
(element_tree: DOMElementNode)
browser_use/browser/tests/test_clicks.py:13
↓ 1 callersFunctionensurePagePermission
Ask the user (once) for host permission to the current origin and, * when granted, inject the content-script.
chrome-extension/js/panel.js:236
↓ 1 callersMethodexecute_action
Execute a registered action
browser_use/controller/registry/service.py:93
↓ 1 callersMethodexecute_tool
Execute a tool with retry mechanism. Args: tool_name: Name of the tool to execute. arguments: Tool arguments.
mcp_client.py:133
↓ 1 callersFunctionextract_action_bundle
Split the incoming JSON dict into: action {type, eventTarget} change_events list from `allEvents` page_content
utils/action_processing.py:24
↓ 1 callersFunctionextract_ultimate_goal
Try to extract ultimate_goal from either exact_replay or smart_replay file. Args: task_id: The task ID to look for in the replay
wap_replay/generate_mcp_server.py:13
↓ 1 callersFunctionfindFirstLinkElementOrNone
(start)
chrome-extension/js/elementProcess.js:144
↓ 1 callersMethodfind_history_element_in_tree
(dom_history_element: DOMHistoryElement, tree: DOMElementNode)
browser_use/dom/history_tree_processor/service.py:35
↓ 1 callersFunctionfolder_to_actions
Walk sub-directories recursively, load every *.json file, convert each to replay actions via `record_metadata_to_actions`, and return the
wap_replay/generate_exact_replay_list.py:27
↓ 1 callersFunctionformatNode
(node)
chrome-extension/js/EventTable.js:4
↓ 1 callersMethodformat_error
Format error message based on error type and optionally include trace
browser_use/agent/views.py:399
↓ 1 callersMethodformat_for_llm
Format tool information for LLM. Returns: A formatted string describing the tool.
mcp_client.py:199
↓ 1 callersFunctiongenerateTaskId
()
chrome-extension/js/background.js:12
↓ 1 callersFunctiongenerate_subgoal_speculate_prompt
(summary_event: Dict[str, Any], ultimate_goal: str, subtask_name: str, output_path: str)
utils/action_processing.py:62
↓ 1 callersFunctiongenerate_subgoals_from_dir
Load all .md files under *dir_path*, query the LLM, and return results. Parameters ---------- dir_path : str | Path Directory con
utils/subgoal_generator.py:30
↓ 1 callersFunctiongetCachedBoundingRect
(element)
chrome-extension/js/elementProcess.js:184
↓ 1 callersFunctiongetEventListeners
(el)
browser_use/dom/buildDomTree.js:663
↓ 1 callersFunctiongetSimpleSelector
(el)
chrome-extension/js/DOMListener.js:785
↓ 1 callersFunctiongetVisibleHTML
* Gets the HTML string for the current page but only for visible nodes. * * @param {number} viewportExpansion - How much extra area to consider as v
chrome-extension/js/elementProcess.js:275
↓ 1 callersFunctiongetXPathTree
* Returns an XPath tree string for an element.
browser_use/dom/buildDomTree.js:338
↓ 1 callersMethodget_clickable_elements
( self, highlight_elements: bool = True, focus_element: int = -1, viewport_expansion: int = 0, )
browser_use/dom/service.py:39
↓ 1 callersMethodget_interacted_element
(model_output: AgentOutput, selector_map: SelectorMap)
browser_use/agent/views.py:180
↓ 1 callersFunctionget_llm_model_generator
Generator that creates fresh model instances each time
run_replay.py:47
↓ 1 callersMethodget_locate_element_by_text
Locates an element on the page using the provided text. If `nth` is provided, it returns the nth matching element (0-based). If `element_type`
browser_use/browser/context.py:1268
↓ 1 callersMethodget_locate_element_by_xpath
Locates an element on the page using the provided XPath.
browser_use/browser/context.py:1232
↓ 1 callersMethodget_page_structure
Get a debug view of the page structure including iframes
browser_use/browser/context.py:809
↓ 1 callersMethodget_playwright_browser
Get a browser context
browser_use/browser/browser.py:138
↓ 1 callersFunctionget_screen_resolution
()
browser_use/browser/utils/screen_resolution.py:4
↓ 1 callersMethodget_scroll_info
Get scroll position information for the current page.
browser_use/browser/context.py:1607
↓ 1 callersMethodget_tabs_info
Get information about all tabs
browser_use/browser/context.py:1442
↓ 1 callersMethodget_tabs_info
Get information about all open tabs. Returns: list: A list of TabInfo objects containing details about each tab.
browser_use/browser/dolphin_service.py:104
↓ 1 callersFunctionget_window_adjustments
Returns recommended x, y offsets for window positioning
browser_use/browser/utils/screen_resolution.py:34
↓ 1 callersMethodgo_back
Navigate back in history
browser_use/browser/context.py:766
↓ 1 callersFunctionhandleContentScriptConnection
(port)
chrome-extension/js/background.js:169
↓ 1 callersFunctionhandleDevToolsConnection
(port)
chrome-extension/js/background.js:133
↓ 1 callersMethodhas_parent_with_highlight_index
(self)
browser_use/dom/views.py:25
↓ 1 callersMethodinitialize
Initialize the server connection.
mcp_client.py:77
↓ 1 callersFunctionisAttached
(node)
chrome-extension/js/DOMListener.js:175
↓ 1 callersFunctionisElementAccepted
(element)
browser_use/dom/buildDomTree.js:420
↓ 1 callersFunctionisElementVisible
* Checks if an element is visible.
browser_use/dom/buildDomTree.js:447
↓ 1 callersFunctionisInExpandedViewport
* Checks if an element is within the expanded viewport.
chrome-extension/js/elementProcess.js:206
↓ 1 callersFunctionisInteractiveCandidate
(element)
browser_use/dom/buildDomTree.js:860
↓ 1 callersFunctionisInteractiveElement
* Checks if an element is interactive.
browser_use/dom/buildDomTree.js:460
↓ 1 callersFunctionisOTAInteractiveElement
(element)
browser_use/dom/buildDomTree.js:799
↓ 1 callersFunctionisTextNodeVisible
* Checks if a text node is visible.
browser_use/dom/buildDomTree.js:377
↓ 1 callersFunctionisTopElement
* Checks if an element is the topmost element at its position.
browser_use/dom/buildDomTree.js:723
↓ 1 callersMethodis_file_uploader
Check if element or its children are file uploaders
browser_use/browser/context.py:1580
↓ 1 callersFunctionloadSettingsToUI
()
chrome-extension/js/panel.js:36
↓ 1 callersMethodload_config
Load server configuration from JSON file. Args: file_path: Path to the JSON configuration file. Returns: Dic
mcp_client.py:35
↓ 1 callersMethodload_env
Load environment variables from .env file.
mcp_client.py:30
↓ 1 callersMethodload_from_file
Load history from JSON file
browser_use/agent/views.py:265
↓ 1 callersFunctionlog_response
Utility function to log the model's response.
browser_use/agent/service.py:69
↓ 1 callersFunctionmain
Initialize and run the chat session.
mcp_client.py:412
↓ 1 callersFunctionmain
(max_concurrent_tasks: int, model_provider: str, wap_replay_list_path: str = Non
run_replay.py:167
↓ 1 callersFunctionmain
()
wap_replay/generate_exact_replay_list.py:89
↓ 1 callersFunctionmain
()
wap_replay/generate_smart_replay_list.py:52
↓ 1 callersFunctionmain
()
wap_replay/generate_mcp_server.py:115
↓ 1 callersFunctionmaskNode
(node)
chrome-extension/js/elementProcess.js:411
↓ 1 callersFunctionmkdir_n_define_file_name
(data_root_dir, task_name)
action_collect_server.py:10
↓ 1 callersMethodmodel_actions_filtered
Get all model actions from history as JSON
browser_use/agent/views.py:374
↓ 1 callersMethodmodel_dump
Custom serialization that properly uses AgentHistory's model_dump
browser_use/agent/views.py:258
↓ 1 callersFunctiono
chrome-extension/lib/purify.min.js:2
↓ 1 callersFunctionoe
()
chrome-extension/lib/purify.min.js:2
↓ 1 callersFunctionparse_args
()
wap_replay/generate_exact_replay_list.py:83
↓ 1 callersFunctionpopTiming
(type)
browser_use/dom/buildDomTree.js:25
↓ 1 callersMethodprocess_llm_response
Process the LLM response and execute tools if needed. Args: llm_response: The response from the LLM. Returns:
mcp_client.py:292
↓ 1 callersFunctionprocess_single_task
Process a single task asynchronously.
run_replay.py:118
↓ 1 callersFunctionprocess_with_semaphore
( replay_list: Dict, client: AzureChatOpenAI | ChatAnthropic | ChatOpenAI, )
run_replay.py:185
← previousnext →201–300 of 527, ranked by callers