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
↓ 2 callers
Method
_match_domains
Match a list of domain glob patterns against a URL. Args: domain_patterns: A list of domain patterns that can include glob patterns (* wildca
browser_use/controller/registry/views.py:74
↓ 2 callers
Method
_match_page_filter
Match a page filter against a page
browser_use/controller/registry/views.py:111
↓ 2 callers
Function
_merge_successive_messages
Some models like deepseek-reasoner dont allow multiple human messages in a row. This function merges them into one.
browser_use/agent/message_manager/utils.py:70
↓ 2 callers
Method
_parent_branch_path_hash
(parent_branch_path: list[str])
browser_use/dom/history_tree_processor/service.py:90
↓ 2 callers
Method
_remove_think_tags
(self, text: str)
browser_use/agent/service.py:803
↓ 2 callers
Function
_selector_from_click
Derive the most reliable selector from recorder payload. Priority -------- 1. #id 2. Stable attrs: data-testid/data-test/data-au
browser_use/wap/exact_replay.py:52
↓ 2 callers
Function
_t
(e)
chrome-extension/lib/purify.min.js:2
↓ 2 callers
Method
_validate_output
Validate the output of the last action is what the user wanted
browser_use/agent/service.py:1124
↓ 2 callers
Method
_wait_for_page_and_frames_load
Ensures page is fully loaded before continuing. Waits for either network to be idle or minimum WAIT_TIME, whichever is longer. Also checks if t
browser_use/browser/context.py:681
↓ 2 callers
Function
_wrap_text
Wrap text to fit within a given width. Args: text: Text to wrap font: Font to use for text max_width: Maximum width in pixels Ret
browser_use/agent/gif.py:312
↓ 2 callers
Method
_xpath_hash
(xpath: str)
browser_use/dom/history_tree_processor/service.py:100
↓ 2 callers
Method
act
Execute an action
browser_use/controller/service.py:915
↓ 2 callers
Method
add_tool_message
Add tool message to history
browser_use/agent/message_manager/service.py:308
↓ 2 callers
Method
cleanup
Clean up server resources.
mcp_client.py:178
↓ 2 callers
Method
cleanup_servers
Clean up all servers properly.
mcp_client.py:281
↓ 2 callers
Function
convert_input_messages
Convert input messages to a format that is compatible with the planner model
browser_use/agent/message_manager/utils.py:36
↓ 2 callers
Method
done
(params: ExtendedOutputModel)
browser_use/controller/service.py:71
↓ 2 callers
Function
extract_json_from_model_output
Extract JSON from model output, handling both plain JSON and code-block-wrapped JSON.
browser_use/agent/message_manager/utils.py:19
↓ 2 callers
Function
filterValidEvents
(allEvents)
chrome-extension/js/DOMListener.js:385
↓ 2 callers
Method
final_result
Final result from history
browser_use/agent/views.py:297
↓ 2 callers
Function
findBestInteractiveElement
* Searches up to maxDepth levels upward and downward from a target node * for an interactive element. If an interactive element is found, returns it;
chrome-extension/js/elementProcess.js:49
↓ 2 callers
Function
findShadowRoots
(node, list)
chrome-extension/js/DOMListener.js:844
↓ 2 callers
Function
find_task_prompt
(data_dir: str | Path)
utils/action_processing.py:88
↓ 2 callers
Function
formatDate
(timestamp)
chrome-extension/js/EventTable.js:34
↓ 2 callers
Function
formatEventDetails
(event)
chrome-extension/js/EventTable.js:40
↓ 2 callers
Method
get_dom_element_by_index
(self, index: int)
browser_use/browser/context.py:1559
↓ 2 callers
Method
get_next_action
Get next action from LLM based on current state
browser_use/agent/service.py:819
↓ 2 callers
Method
get_response
Get a response from the LLM. Args: messages: A list of message dictionaries. Returns: The LLM's response as
mcp_client.py:229
↓ 2 callers
Method
get_system_message
Get the system prompt for the agent. Returns: SystemMessage: Formatted system prompt
browser_use/agent/prompts.py:45
↓ 2 callers
Method
get_user_message
(self, use_vision: bool = True, is_smart_replay: bool = False)
browser_use/agent/prompts.py:79
↓ 2 callers
Function
handleUserAction
(event, evHash)
chrome-extension/js/DOMListener.js:457
↓ 2 callers
Function
handleUserClickLink
(event, evHash)
chrome-extension/js/DOMListener.js:682
↓ 2 callers
Function
ht
(e)
chrome-extension/lib/purify.min.js:2
↓ 2 callers
Function
isElementClickable
(el)
chrome-extension/js/elementProcess.js:110
↓ 2 callers
Method
is_last_step
Check if this is the last step
browser_use/agent/views.py:101
↓ 2 callers
Method
is_successful
Check if the agent completed successfully - the agent decides in the last step if it was successful or not. None if not done yet.
browser_use/agent/views.py:310
↓ 2 callers
Function
jsArg
(str)
chrome-extension/js/ContentScriptProxy.js:16
↓ 2 callers
Method
last_action
Last action in history
browser_use/agent/views.py:281
↓ 2 callers
Method
list_tools
List available tools from the server. Returns: A list of available tools. Raises: RuntimeError: If the serve
mcp_client.py:109
↓ 2 callers
Function
load_event_json
Read the given JSON file and return it as a Python dict.
utils/action_processing.py:131
↓ 2 callers
Function
logEvent
(event)
chrome-extension/js/DOMListener.js:170
↓ 2 callers
Method
log_completion
Log the completion of the task
browser_use/agent/service.py:1169
↓ 2 callers
Function
momentJS
(date, timeOnly)
chrome-extension/js/EventTable.js:18
↓ 2 callers
Function
nodesToObjects
(nodes, contextNode)
chrome-extension/js/DOMListener.js:149
↓ 2 callers
Method
prompt_description
Get a description of the action for the prompt
browser_use/controller/registry/views.py:21
↓ 2 callers
Function
removeListeners
(task_finish=false)
chrome-extension/js/DOMListener.js:880
↓ 2 callers
Method
remove_highlights
Removes all highlight overlays and labels created by the highlightElement function. Handles cases where the page might be closed or inaccessible.
browser_use/browser/context.py:989
↓ 2 callers
Method
remove_last_state_message
Remove last state message from history
browser_use/agent/message_manager/views.py:122
↓ 2 callers
Function
report
(value, originEl)
chrome-extension/js/specialEventHandler.js:35
↓ 2 callers
Function
save_conversation
Save conversation history to file.
browser_use/agent/message_manager/utils.py:90
↓ 2 callers
Method
save_cookies
Save current cookies to file
browser_use/browser/context.py:1563
↓ 2 callers
Method
save_to_file
Save history to JSON file with proper serialization
browser_use/agent/views.py:248
↓ 2 callers
Function
sendDataToCollectorServer
(data)
chrome-extension/js/background.js:41
↓ 2 callers
Function
sendToBG
(message)
chrome-extension/js/panel.js:334
↓ 2 callers
Function
setupListeners
(task_start=false)
chrome-extension/js/DOMListener.js:862
↓ 2 callers
Method
step
Execute one step of the task
browser_use/agent/service.py:394
↓ 2 callers
Method
take_screenshot
Returns a base64 encoded screenshot of the current page.
browser_use/browser/context.py:968
↓ 2 callers
Function
trimElementWithPlaceholder
* Recursively builds a trimmed HTML string from the given node. * Only goes N layers deep. Deeper nested content is replaced with a placeholder. *
chrome-extension/js/elementProcess.js:311
↓ 2 callers
Method
urls
Get all unique URLs from history
browser_use/agent/views.py:322
↓ 2 callers
Function
vt
(e)
chrome-extension/lib/purify.min.js:2
↓ 2 callers
Method
wait_for_page_load
Wait for the page to load completely. Args: timeout (int): Maximum time to wait for page load in milliseconds (default: 30000ms). Raise
browser_use/browser/dolphin_service.py:121
↓ 2 callers
Function
wt
(e)
chrome-extension/lib/purify.min.js:2
↓ 1 callers
Function
CheckIsClickOnInputOrLabel
(event)
chrome-extension/js/DOMListener.js:721
↓ 1 callers
Function
Lt
(t)
chrome-extension/lib/purify.min.js:2
↓ 1 callers
Function
O
(e)
chrome-extension/lib/purify.min.js:2
↓ 1 callers
Method
__str__
Representation of the AgentHistoryList object
browser_use/agent/views.py:240
↓ 1 callers
Function
_add_overlay_to_image
Add step number and goal overlay to an image.
browser_use/agent/gif.py:214
↓ 1 callers
Method
_build_dom_tree
( self, highlight_elements: bool, focus_element: int, viewport_expansion: int, )
browser_use/dom/service.py:67
↓ 1 callers
Function
_build_llm
Create a LangChain ChatOpenAI client with sane defaults. Parameters ---------- model : str OpenAI model name. Defaults to *gpt-4
utils/llm.py:20
↓ 1 callers
Method
_cancel_interruptible_tasks
Cancel current tasks that should be interruptible.
browser_use/utils.py:196
↓ 1 callers
Function
_clean_reply
Remove markdown fences and whitespace from a reply string.
utils/subgoal_generator.py:95
↓ 1 callers
Method
_construct_dom_tree
( self, eval_page: dict, )
browser_use/dom/service.py:118
↓ 1 callers
Method
_convert_initial_actions
Convert dictionary-based actions to ActionModel instances
browser_use/agent/service.py:1339
↓ 1 callers
Method
_convert_input_messages
Convert input messages to the correct format
browser_use/agent/service.py:811
↓ 1 callers
Function
_convert_messages_for_non_function_calling_models
Convert messages for non-function-calling models
browser_use/agent/message_manager/utils.py:48
↓ 1 callers
Method
_convert_simple_xpath_to_css_selector
Converts simple XPath expressions to CSS selectors.
browser_use/browser/context.py:1025
↓ 1 callers
Method
_create
(self, messages: List[BaseMessage], current_step: int)
browser_use/agent/memory/service.py:105
↓ 1 callers
Method
_create_context
Creates a new browser context with anti-detection measures and loads cookies if available.
browser_use/browser/context.py:423
↓ 1 callers
Method
_create_param_model
Creates a Pydantic model from function signature
browser_use/controller/registry/service.py:33
↓ 1 callers
Function
_create_task_frame
Create initial frame showing the task.
browser_use/agent/gif.py:139
↓ 1 callers
Method
_direct_capture
Should not be thread blocking because posthog magically handles it
browser_use/telemetry/service.py:70
↓ 1 callers
Method
_execute_history_step
Execute a single step from history with element validation
browser_use/agent/service.py:1243
↓ 1 callers
Method
_filter_sensitive_data
Filter out sensitive data from the message
browser_use/agent/message_manager/service.py:205
↓ 1 callers
Method
_get_unique_filename
Generate a unique filename by appending (1), (2), etc., if a file already exists.
browser_use/browser/context.py:1631
↓ 1 callers
Method
_init_messages
Initialize the message history with system message, context, task, and other initial messages
browser_use/agent/message_manager/service.py:51
↓ 1 callers
Method
_initialize_loop_state
Initialize loop state attributes used for signal handling.
browser_use/utils.py:70
↓ 1 callers
Method
_input_text_element_handle
Input text into an element with proper error handling and state management. Handles different types of input fields and ensures proper element st
browser_use/browser/context.py:1347
↓ 1 callers
Method
_input_text_element_node
Input text into an element with proper error handling and state management. Handles different types of input fields and ensures proper element st
browser_use/browser/context.py:1304
↓ 1 callers
Method
_load_prompt_template
Load the prompt template from the markdown file.
browser_use/agent/prompts.py:36
↓ 1 callers
Function
_load_prompts
Return a list of (path, text) for every .md file in *dir_path*.
utils/subgoal_generator.py:18
↓ 1 callers
Method
_log_agent_run
Log the agent run
browser_use/agent/service.py:901
↓ 1 callers
Function
_newEventHash
()
chrome-extension/js/DOMListener.js:365
↓ 1 callers
Method
_parse_node
( self, node_data: dict, )
browser_use/dom/service.py:163
↓ 1 callers
Method
_replace_sensitive_data
Replaces the sensitive data in the params
browser_use/controller/registry/service.py:152
↓ 1 callers
Method
_run_planner
Run the planner to analyze state and suggest next steps
browser_use/agent/service.py:1398
↓ 1 callers
Method
_set_browser_use_version_and_source
Get the version and source of the browser-use package (git or pip in a nutshell)
browser_use/agent/service.py:301
↓ 1 callers
Method
_set_message_context
(self)
browser_use/agent/service.py:292
↓ 1 callers
Method
_set_model_names
(self)
browser_use/agent/service.py:331
↓ 1 callers
Method
_set_tool_calling_method
(self)
browser_use/agent/service.py:362
↓ 1 callers
Method
_setup_action_models
Setup dynamic action models from controller's registry
browser_use/agent/service.py:351
← previous
next →
101–200 of 527, ranked by callers