Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OTA-Tech-AI/web-agent-protocol
/ functions
Functions
527 in github.com/OTA-Tech-AI/web-agent-protocol
⨍
Functions
527
◇
Types & classes
98
↳
Endpoints
19
↓ 1 callers
Method
_setup_browser
Sets up and returns a Playwright Browser instance with anti-detection measures.
browser_use/browser/browser.py:299
↓ 1 callers
Method
_setup_builtin_browser
Sets up and returns a Playwright Browser instance with anti-detection measures.
browser_use/browser/browser.py:246
↓ 1 callers
Method
_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 callers
Method
_setup_remote_wss_browser
Sets up and returns a Playwright Browser instance with anti-detection measures.
browser_use/browser/browser.py:169
↓ 1 callers
Method
_setup_user_provided_browser
Sets up and returns a Playwright Browser instance with anti-detection measures.
browser_use/browser/browser.py:178
↓ 1 callers
Method
_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 callers
Method
_update_action_models_for_page
Update action models with page-specific actions
browser_use/agent/service.py:1482
↓ 1 callers
Method
_update_state
Update and return state.
browser_use/browser/context.py:893
↓ 1 callers
Method
_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 callers
Method
_wait_for_stable_network
(self)
browser_use/browser/context.py:512
↓ 1 callers
Function
_write_messages_to_file
Write messages to conversation file
browser_use/agent/message_manager/utils.py:106
↓ 1 callers
Function
_write_response_to_file
Write model response to conversation file
browser_use/agent/message_manager/utils.py:125
↓ 1 callers
Method
action_results
Get all results from history
browser_use/agent/views.py:360
↓ 1 callers
Function
addLoggingLevel
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 callers
Method
add_plan
(self, plan: Optional[str], position: int | None = None)
browser_use/agent/message_manager/service.py:169
↓ 1 callers
Function
analyze_page_structure
Analyze and print the structure of a webpage with enhanced debugging
browser_use/dom/tests/debug_page_structure.py:11
↓ 1 callers
Function
ask_llm
Send *prompt* to OpenAI and return the assistant text. Parameters ---------- prompt : str User prompt / question. system_prom
utils/llm.py:38
↓ 1 callers
Function
buildDomTree
* Creates a node data object for a given node and its descendants.
browser_use/dom/buildDomTree.js:895
↓ 1 callers
Function
check_env_variables
Check if all required environment variables are set
browser_use/utils.py:318
↓ 1 callers
Function
choose_template
Return the correct template file for a given action_type.
utils/action_processing.py:9
↓ 1 callers
Function
cleanUpNodeRegistry
()
chrome-extension/js/DOMListener.js:187
↓ 1 callers
Method
cleanup_httpx_clients
Cleanup all httpx clients
browser_use/browser/browser.py:362
↓ 1 callers
Function
cleanup_webdriver_cache
Clean up webdriver cache directories.
run_replay.py:30
↓ 1 callers
Function
cloneVisible
* 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 callers
Method
convert_dom_element_to_history_element
(dom_element: DOMElementNode)
browser_use/dom/history_tree_processor/service.py:16
↓ 1 callers
Function
count_string_tokens
Count the number of tokens in a string using a specified model.
browser_use/dom/tests/extraction_test.py:12
↓ 1 callers
Function
create_history_gif
Create a GIF from the agent's history with overlaid task and goal text.
browser_use/agent/gif.py:20
↓ 1 callers
Function
create_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 callers
Method
create_new_tab
Create a new tab and optionally navigate to a URL
browser_use/browser/context.py:1487
↓ 1 callers
Method
create_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 callers
Method
cut_messages
Get current message list, potentially trimmed to max tokens
browser_use/agent/message_manager/service.py:247
↓ 1 callers
Function
doesElementHaveInteractivePointer
(element)
browser_use/dom/buildDomTree.js:512
↓ 1 callers
Method
dom_element_node_to_json
(element_tree: DOMElementNode)
browser_use/browser/tests/test_clicks.py:13
↓ 1 callers
Function
ensurePagePermission
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 callers
Method
execute_action
Execute a registered action
browser_use/controller/registry/service.py:93
↓ 1 callers
Method
execute_tool
Execute a tool with retry mechanism. Args: tool_name: Name of the tool to execute. arguments: Tool arguments.
mcp_client.py:133
↓ 1 callers
Function
extract_action_bundle
Split the incoming JSON dict into: action {type, eventTarget} change_events list from `allEvents` page_content
utils/action_processing.py:24
↓ 1 callers
Function
extract_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 callers
Function
findFirstLinkElementOrNone
(start)
chrome-extension/js/elementProcess.js:144
↓ 1 callers
Method
find_history_element_in_tree
(dom_history_element: DOMHistoryElement, tree: DOMElementNode)
browser_use/dom/history_tree_processor/service.py:35
↓ 1 callers
Function
folder_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 callers
Function
formatNode
(node)
chrome-extension/js/EventTable.js:4
↓ 1 callers
Method
format_error
Format error message based on error type and optionally include trace
browser_use/agent/views.py:399
↓ 1 callers
Method
format_for_llm
Format tool information for LLM. Returns: A formatted string describing the tool.
mcp_client.py:199
↓ 1 callers
Function
generateTaskId
()
chrome-extension/js/background.js:12
↓ 1 callers
Function
generate_subgoal_speculate_prompt
(summary_event: Dict[str, Any], ultimate_goal: str, subtask_name: str, output_path: str)
utils/action_processing.py:62
↓ 1 callers
Function
generate_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 callers
Function
getCachedBoundingRect
(element)
chrome-extension/js/elementProcess.js:184
↓ 1 callers
Function
getEventListeners
(el)
browser_use/dom/buildDomTree.js:663
↓ 1 callers
Function
getSimpleSelector
(el)
chrome-extension/js/DOMListener.js:785
↓ 1 callers
Function
getVisibleHTML
* 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 callers
Function
getXPathTree
* Returns an XPath tree string for an element.
browser_use/dom/buildDomTree.js:338
↓ 1 callers
Method
get_clickable_elements
( self, highlight_elements: bool = True, focus_element: int = -1, viewport_expansion: int = 0, )
browser_use/dom/service.py:39
↓ 1 callers
Method
get_interacted_element
(model_output: AgentOutput, selector_map: SelectorMap)
browser_use/agent/views.py:180
↓ 1 callers
Function
get_llm_model_generator
Generator that creates fresh model instances each time
run_replay.py:47
↓ 1 callers
Method
get_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 callers
Method
get_locate_element_by_xpath
Locates an element on the page using the provided XPath.
browser_use/browser/context.py:1232
↓ 1 callers
Method
get_page_structure
Get a debug view of the page structure including iframes
browser_use/browser/context.py:809
↓ 1 callers
Method
get_playwright_browser
Get a browser context
browser_use/browser/browser.py:138
↓ 1 callers
Function
get_screen_resolution
()
browser_use/browser/utils/screen_resolution.py:4
↓ 1 callers
Method
get_scroll_info
Get scroll position information for the current page.
browser_use/browser/context.py:1607
↓ 1 callers
Method
get_tabs_info
Get information about all tabs
browser_use/browser/context.py:1442
↓ 1 callers
Method
get_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 callers
Function
get_window_adjustments
Returns recommended x, y offsets for window positioning
browser_use/browser/utils/screen_resolution.py:34
↓ 1 callers
Method
go_back
Navigate back in history
browser_use/browser/context.py:766
↓ 1 callers
Function
handleContentScriptConnection
(port)
chrome-extension/js/background.js:169
↓ 1 callers
Function
handleDevToolsConnection
(port)
chrome-extension/js/background.js:133
↓ 1 callers
Method
has_parent_with_highlight_index
(self)
browser_use/dom/views.py:25
↓ 1 callers
Method
initialize
Initialize the server connection.
mcp_client.py:77
↓ 1 callers
Function
isAttached
(node)
chrome-extension/js/DOMListener.js:175
↓ 1 callers
Function
isElementAccepted
(element)
browser_use/dom/buildDomTree.js:420
↓ 1 callers
Function
isElementVisible
* Checks if an element is visible.
browser_use/dom/buildDomTree.js:447
↓ 1 callers
Function
isInExpandedViewport
* Checks if an element is within the expanded viewport.
chrome-extension/js/elementProcess.js:206
↓ 1 callers
Function
isInteractiveCandidate
(element)
browser_use/dom/buildDomTree.js:860
↓ 1 callers
Function
isInteractiveElement
* Checks if an element is interactive.
browser_use/dom/buildDomTree.js:460
↓ 1 callers
Function
isOTAInteractiveElement
(element)
browser_use/dom/buildDomTree.js:799
↓ 1 callers
Function
isTextNodeVisible
* Checks if a text node is visible.
browser_use/dom/buildDomTree.js:377
↓ 1 callers
Function
isTopElement
* Checks if an element is the topmost element at its position.
browser_use/dom/buildDomTree.js:723
↓ 1 callers
Method
is_file_uploader
Check if element or its children are file uploaders
browser_use/browser/context.py:1580
↓ 1 callers
Function
loadSettingsToUI
()
chrome-extension/js/panel.js:36
↓ 1 callers
Method
load_config
Load server configuration from JSON file. Args: file_path: Path to the JSON configuration file. Returns: Dic
mcp_client.py:35
↓ 1 callers
Method
load_env
Load environment variables from .env file.
mcp_client.py:30
↓ 1 callers
Method
load_from_file
Load history from JSON file
browser_use/agent/views.py:265
↓ 1 callers
Function
log_response
Utility function to log the model's response.
browser_use/agent/service.py:69
↓ 1 callers
Function
main
Initialize and run the chat session.
mcp_client.py:412
↓ 1 callers
Function
main
(max_concurrent_tasks: int, model_provider: str, wap_replay_list_path: str = Non
run_replay.py:167
↓ 1 callers
Function
main
()
wap_replay/generate_exact_replay_list.py:89
↓ 1 callers
Function
main
()
wap_replay/generate_smart_replay_list.py:52
↓ 1 callers
Function
main
()
wap_replay/generate_mcp_server.py:115
↓ 1 callers
Function
maskNode
(node)
chrome-extension/js/elementProcess.js:411
↓ 1 callers
Function
mkdir_n_define_file_name
(data_root_dir, task_name)
action_collect_server.py:10
↓ 1 callers
Method
model_actions_filtered
Get all model actions from history as JSON
browser_use/agent/views.py:374
↓ 1 callers
Method
model_dump
Custom serialization that properly uses AgentHistory's model_dump
browser_use/agent/views.py:258
↓ 1 callers
Function
o
chrome-extension/lib/purify.min.js:2
↓ 1 callers
Function
oe
()
chrome-extension/lib/purify.min.js:2
↓ 1 callers
Function
parse_args
()
wap_replay/generate_exact_replay_list.py:83
↓ 1 callers
Function
popTiming
(type)
browser_use/dom/buildDomTree.js:25
↓ 1 callers
Method
process_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 callers
Function
process_single_task
Process a single task asynchronously.
run_replay.py:118
↓ 1 callers
Function
process_with_semaphore
( replay_list: Dict, client: AzureChatOpenAI | ChatAnthropic | ChatOpenAI, )
run_replay.py:185
← previous
next →
201–300 of 527, ranked by callers