MCPcopy Create free account

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

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

↓ 2 callersMethod_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 callersMethod_match_page_filter
Match a page filter against a page
browser_use/controller/registry/views.py:111
↓ 2 callersFunction_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 callersMethod_parent_branch_path_hash
(parent_branch_path: list[str])
browser_use/dom/history_tree_processor/service.py:90
↓ 2 callersMethod_remove_think_tags
(self, text: str)
browser_use/agent/service.py:803
↓ 2 callersFunction_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 callersFunction_t
(e)
chrome-extension/lib/purify.min.js:2
↓ 2 callersMethod_validate_output
Validate the output of the last action is what the user wanted
browser_use/agent/service.py:1124
↓ 2 callersMethod_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 callersFunction_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 callersMethod_xpath_hash
(xpath: str)
browser_use/dom/history_tree_processor/service.py:100
↓ 2 callersMethodact
Execute an action
browser_use/controller/service.py:915
↓ 2 callersMethodadd_tool_message
Add tool message to history
browser_use/agent/message_manager/service.py:308
↓ 2 callersMethodcleanup
Clean up server resources.
mcp_client.py:178
↓ 2 callersMethodcleanup_servers
Clean up all servers properly.
mcp_client.py:281
↓ 2 callersFunctionconvert_input_messages
Convert input messages to a format that is compatible with the planner model
browser_use/agent/message_manager/utils.py:36
↓ 2 callersMethoddone
(params: ExtendedOutputModel)
browser_use/controller/service.py:71
↓ 2 callersFunctionextract_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 callersFunctionfilterValidEvents
(allEvents)
chrome-extension/js/DOMListener.js:385
↓ 2 callersMethodfinal_result
Final result from history
browser_use/agent/views.py:297
↓ 2 callersFunctionfindBestInteractiveElement
* 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 callersFunctionfindShadowRoots
(node, list)
chrome-extension/js/DOMListener.js:844
↓ 2 callersFunctionfind_task_prompt
(data_dir: str | Path)
utils/action_processing.py:88
↓ 2 callersFunctionformatDate
(timestamp)
chrome-extension/js/EventTable.js:34
↓ 2 callersFunctionformatEventDetails
(event)
chrome-extension/js/EventTable.js:40
↓ 2 callersMethodget_dom_element_by_index
(self, index: int)
browser_use/browser/context.py:1559
↓ 2 callersMethodget_next_action
Get next action from LLM based on current state
browser_use/agent/service.py:819
↓ 2 callersMethodget_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 callersMethodget_system_message
Get the system prompt for the agent. Returns: SystemMessage: Formatted system prompt
browser_use/agent/prompts.py:45
↓ 2 callersMethodget_user_message
(self, use_vision: bool = True, is_smart_replay: bool = False)
browser_use/agent/prompts.py:79
↓ 2 callersFunctionhandleUserAction
(event, evHash)
chrome-extension/js/DOMListener.js:457
↓ 2 callersFunctionhandleUserClickLink
(event, evHash)
chrome-extension/js/DOMListener.js:682
↓ 2 callersFunctionht
(e)
chrome-extension/lib/purify.min.js:2
↓ 2 callersFunctionisElementClickable
(el)
chrome-extension/js/elementProcess.js:110
↓ 2 callersMethodis_last_step
Check if this is the last step
browser_use/agent/views.py:101
↓ 2 callersMethodis_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 callersFunctionjsArg
(str)
chrome-extension/js/ContentScriptProxy.js:16
↓ 2 callersMethodlast_action
Last action in history
browser_use/agent/views.py:281
↓ 2 callersMethodlist_tools
List available tools from the server. Returns: A list of available tools. Raises: RuntimeError: If the serve
mcp_client.py:109
↓ 2 callersFunctionload_event_json
Read the given JSON file and return it as a Python dict.
utils/action_processing.py:131
↓ 2 callersFunctionlogEvent
(event)
chrome-extension/js/DOMListener.js:170
↓ 2 callersMethodlog_completion
Log the completion of the task
browser_use/agent/service.py:1169
↓ 2 callersFunctionmomentJS
(date, timeOnly)
chrome-extension/js/EventTable.js:18
↓ 2 callersFunctionnodesToObjects
(nodes, contextNode)
chrome-extension/js/DOMListener.js:149
↓ 2 callersMethodprompt_description
Get a description of the action for the prompt
browser_use/controller/registry/views.py:21
↓ 2 callersFunctionremoveListeners
(task_finish=false)
chrome-extension/js/DOMListener.js:880
↓ 2 callersMethodremove_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 callersMethodremove_last_state_message
Remove last state message from history
browser_use/agent/message_manager/views.py:122
↓ 2 callersFunctionreport
(value, originEl)
chrome-extension/js/specialEventHandler.js:35
↓ 2 callersFunctionsave_conversation
Save conversation history to file.
browser_use/agent/message_manager/utils.py:90
↓ 2 callersMethodsave_cookies
Save current cookies to file
browser_use/browser/context.py:1563
↓ 2 callersMethodsave_to_file
Save history to JSON file with proper serialization
browser_use/agent/views.py:248
↓ 2 callersFunctionsendDataToCollectorServer
(data)
chrome-extension/js/background.js:41
↓ 2 callersFunctionsendToBG
(message)
chrome-extension/js/panel.js:334
↓ 2 callersFunctionsetupListeners
(task_start=false)
chrome-extension/js/DOMListener.js:862
↓ 2 callersMethodstep
Execute one step of the task
browser_use/agent/service.py:394
↓ 2 callersMethodtake_screenshot
Returns a base64 encoded screenshot of the current page.
browser_use/browser/context.py:968
↓ 2 callersFunctiontrimElementWithPlaceholder
* 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 callersMethodurls
Get all unique URLs from history
browser_use/agent/views.py:322
↓ 2 callersFunctionvt
(e)
chrome-extension/lib/purify.min.js:2
↓ 2 callersMethodwait_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 callersFunctionwt
(e)
chrome-extension/lib/purify.min.js:2
↓ 1 callersFunctionCheckIsClickOnInputOrLabel
(event)
chrome-extension/js/DOMListener.js:721
↓ 1 callersFunctionLt
(t)
chrome-extension/lib/purify.min.js:2
↓ 1 callersFunctionO
(e)
chrome-extension/lib/purify.min.js:2
↓ 1 callersMethod__str__
Representation of the AgentHistoryList object
browser_use/agent/views.py:240
↓ 1 callersFunction_add_overlay_to_image
Add step number and goal overlay to an image.
browser_use/agent/gif.py:214
↓ 1 callersMethod_build_dom_tree
( self, highlight_elements: bool, focus_element: int, viewport_expansion: int, )
browser_use/dom/service.py:67
↓ 1 callersFunction_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 callersMethod_cancel_interruptible_tasks
Cancel current tasks that should be interruptible.
browser_use/utils.py:196
↓ 1 callersFunction_clean_reply
Remove markdown fences and whitespace from a reply string.
utils/subgoal_generator.py:95
↓ 1 callersMethod_construct_dom_tree
( self, eval_page: dict, )
browser_use/dom/service.py:118
↓ 1 callersMethod_convert_initial_actions
Convert dictionary-based actions to ActionModel instances
browser_use/agent/service.py:1339
↓ 1 callersMethod_convert_input_messages
Convert input messages to the correct format
browser_use/agent/service.py:811
↓ 1 callersFunction_convert_messages_for_non_function_calling_models
Convert messages for non-function-calling models
browser_use/agent/message_manager/utils.py:48
↓ 1 callersMethod_convert_simple_xpath_to_css_selector
Converts simple XPath expressions to CSS selectors.
browser_use/browser/context.py:1025
↓ 1 callersMethod_create
(self, messages: List[BaseMessage], current_step: int)
browser_use/agent/memory/service.py:105
↓ 1 callersMethod_create_context
Creates a new browser context with anti-detection measures and loads cookies if available.
browser_use/browser/context.py:423
↓ 1 callersMethod_create_param_model
Creates a Pydantic model from function signature
browser_use/controller/registry/service.py:33
↓ 1 callersFunction_create_task_frame
Create initial frame showing the task.
browser_use/agent/gif.py:139
↓ 1 callersMethod_direct_capture
Should not be thread blocking because posthog magically handles it
browser_use/telemetry/service.py:70
↓ 1 callersMethod_execute_history_step
Execute a single step from history with element validation
browser_use/agent/service.py:1243
↓ 1 callersMethod_filter_sensitive_data
Filter out sensitive data from the message
browser_use/agent/message_manager/service.py:205
↓ 1 callersMethod_get_unique_filename
Generate a unique filename by appending (1), (2), etc., if a file already exists.
browser_use/browser/context.py:1631
↓ 1 callersMethod_init_messages
Initialize the message history with system message, context, task, and other initial messages
browser_use/agent/message_manager/service.py:51
↓ 1 callersMethod_initialize_loop_state
Initialize loop state attributes used for signal handling.
browser_use/utils.py:70
↓ 1 callersMethod_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 callersMethod_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 callersMethod_load_prompt_template
Load the prompt template from the markdown file.
browser_use/agent/prompts.py:36
↓ 1 callersFunction_load_prompts
Return a list of (path, text) for every .md file in *dir_path*.
utils/subgoal_generator.py:18
↓ 1 callersMethod_log_agent_run
Log the agent run
browser_use/agent/service.py:901
↓ 1 callersFunction_newEventHash
()
chrome-extension/js/DOMListener.js:365
↓ 1 callersMethod_parse_node
( self, node_data: dict, )
browser_use/dom/service.py:163
↓ 1 callersMethod_replace_sensitive_data
Replaces the sensitive data in the params
browser_use/controller/registry/service.py:152
↓ 1 callersMethod_run_planner
Run the planner to analyze state and suggest next steps
browser_use/agent/service.py:1398
↓ 1 callersMethod_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 callersMethod_set_message_context
(self)
browser_use/agent/service.py:292
↓ 1 callersMethod_set_model_names
(self)
browser_use/agent/service.py:331
↓ 1 callersMethod_set_tool_calling_method
(self)
browser_use/agent/service.py:362
↓ 1 callersMethod_setup_action_models
Setup dynamic action models from controller's registry
browser_use/agent/service.py:351
← previousnext →101–200 of 527, ranked by callers