MCPcopy Index your code

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

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

↓ 79 callersMethodget
(self, key, default=None)
browser_use/browser/browser.py:55
↓ 40 callersMethodget_current_page
Get the current page
browser_use/browser/context.py:418
↓ 37 callersFunctionw
(e,o)
chrome-extension/lib/purify.min.js:2
↓ 23 callersFunction_make
Return {"action": action, "action_params": {…}}
browser_use/wap/exact_replay.py:23
↓ 20 callersMethodmodel_dump
Custom serialization handling circular references
browser_use/agent/views.py:191
↓ 19 callersMethod_add_message_with_tokens
Add message with token count metadata position: None for last, -1 for second last, etc.
browser_use/agent/message_manager/service.py:189
↓ 15 callersFunctionR
(e)
chrome-extension/lib/purify.min.js:2
↓ 12 callersMethodrun
Execute the task with maximum number of steps
browser_use/agent/service.py:943
↓ 10 callersFunctionEt
(e)
chrome-extension/lib/purify.min.js:2
↓ 10 callersMethodget_session
Lazy initialization of the browser and related components
browser_use/browser/context.py:408
↓ 9 callersFunctionRt
(e,t,n)
chrome-extension/lib/purify.min.js:2
↓ 9 callersMethod_remove_last_state_message
Remove last state message from history
browser_use/agent/message_manager/service.py:304
↓ 8 callersMethod_raise_if_stopped_or_paused
Utility function that raises an InterruptedError if the agent is stopped or paused.
browser_use/agent/service.py:381
↓ 8 callersMethodadd_state_message
Add browser state as human message
browser_use/agent/message_manager/service.py:111
↓ 8 callersMethodget
(self, key, default=None)
browser_use/browser/context.py:61
↓ 8 callersFunctiongetCurrentHTMLSanitized
()
chrome-extension/js/DOMListener.js:416
↓ 8 callersMethodget_messages
Get all messages
browser_use/agent/message_manager/views.py:106
↓ 7 callersFunctiongetEventHash
()
chrome-extension/js/DOMListener.js:371
↓ 7 callersMethodget_selector_map
(self)
browser_use/browser/context.py:1548
↓ 7 callersMethodget_state
Get the current state of the browser
browser_use/browser/context.py:881
↓ 7 callersFunctionmeasureTime
(fn)
browser_use/dom/buildDomTree.js:76
↓ 6 callersFunctionD
(t)
chrome-extension/lib/purify.min.js:2
↓ 6 callersFunctioncallCommand
(cmd)
chrome-extension/js/ContentScriptProxy.js:4
↓ 6 callersFunctionenqueueByHash
* Puts a payload into the de-dupe queue. * - if we already hold something for the same eventHash … * • keep an existing *submit* unless the n
chrome-extension/js/background.js:79
↓ 5 callersMethod_get_cdp_targets
Get all CDP targets directly using CDP protocol
browser_use/browser/context.py:1641
↓ 5 callersMethodcapture
(self, event: BaseTelemetryEvent)
browser_use/telemetry/service.py:62
↓ 5 callersMethodclose
Close the browser instance
browser_use/browser/browser.py:318
↓ 5 callersMethodcreate_action_model
Creates a Pydantic model from registered actions, used by LLM APIs that support tool calling & enforce a schema
browser_use/controller/registry/service.py:178
↓ 5 callersMethodformat
(self, record)
browser_use/logging_config.py:79
↓ 5 callersMethodget_index
Get the index of the action
browser_use/controller/registry/views.py:45
↓ 5 callersMethodget_prompt_description
Get a description of all actions for the prompt If page is provided, only include actions that are available for that page based on their filter_
browser_use/controller/registry/service.py:223
↓ 5 callersFunctionhighlightNode
(node, color)
chrome-extension/js/DOMListener.js:79
↓ 5 callersMethodis_done
Check if the agent is done
browser_use/agent/views.py:303
↓ 5 callersMethodmulti_act
Execute multiple actions
browser_use/agent/service.py:1056
↓ 5 callersMethodnew_context
Create a browser context
browser_use/browser/browser.py:134
↓ 5 callersFunctionnodeToHTMLString
(node)
chrome-extension/js/DOMListener.js:134
↓ 5 callersFunctionnodeToObject
(node, contextNode)
chrome-extension/js/DOMListener.js:155
↓ 5 callersFunctiontrimTarget
(node)
chrome-extension/js/elementProcess.js:348
↓ 5 callersFunctionv
(e,t)
chrome-extension/lib/purify.min.js:2
↓ 4 callersFunctionAt
(e,t)
chrome-extension/lib/purify.min.js:2
↓ 4 callersMethod_is_url_allowed
Check if a URL is allowed based on the whitelist configuration.
browser_use/browser/context.py:713
↓ 4 callersFunctionaction_registry
()
browser_use/agent/tests.py:36
↓ 4 callersMethodauthenticate
Authenticate with Dolphin Anty API using the API token. Raises: Exception: If authentication fails.
browser_use/browser/dolphin_service.py:152
↓ 4 callersMethodclickable_elements_to_string
Convert the processed DOM content to HTML.
browser_use/dom/views.py:124
↓ 4 callersMethodclose
Close the browser instance
browser_use/browser/context.py:277
↓ 4 callersFunctiondedupPush
(acc, evt)
chrome-extension/js/DOMListener.js:398
↓ 4 callersFunctionformatValue
(value)
chrome-extension/js/EventTable.js:8
↓ 4 callersFunctiongetCachedComputedStyle
(element)
browser_use/dom/buildDomTree.js:146
↓ 4 callersFunctionhighlightElement
* Highlights an element in the DOM and returns the index of the next element.
browser_use/dom/buildDomTree.js:193
↓ 4 callersMethodmodel_actions
Get all actions from history
browser_use/agent/views.py:348
↓ 4 callersFunctionscoreEvent
(evt)
chrome-extension/js/DOMListener.js:407
↓ 4 callersFunctionsendPageContentUpdatetoBackground
(status)
chrome-extension/js/DOMListener.js:292
↓ 4 callersMethodstart
Main chat session handler.
mcp_client.py:336
↓ 4 callersMethodswitch_to_tab
Switch to a specific tab by its page_id
browser_use/browser/context.py:1460
↓ 4 callersMethodtype_with_custom_actions
Extend actions with custom actions
browser_use/agent/views.py:154
↓ 3 callersMethod_check_and_handle_navigation
Check if current page URL is allowed and handle if not.
browser_use/browser/context.py:741
↓ 3 callersMethod_count_tokens
Count tokens in a message using the model's tokenizer
browser_use/agent/message_manager/service.py:226
↓ 3 callersMethod_enhanced_css_selector_for_element
Creates a CSS selector for a DOM element, handling various edge cases and special characters. Args: element: The DOM element to create
browser_use/browser/context.py:1083
↓ 3 callersMethod_get_current_page
(self, session: BrowserSession)
browser_use/browser/context.py:1514
↓ 3 callersMethod_handle_step_error
Handle all types of errors that can occur during a step
browser_use/agent/service.py:730
↓ 3 callersMethod_hash_dom_element
(dom_element: DOMElementNode)
browser_use/dom/history_tree_processor/service.py:68
↓ 3 callersMethod_initialize_session
Initialize the browser session
browser_use/browser/context.py:330
↓ 3 callersMethod_make_history_item
Create and store history item
browser_use/agent/service.py:774
↓ 3 callersFunction_queue
(payload)
chrome-extension/js/background.js:61
↓ 3 callersMethodadd_message
Add message with metadata to history
browser_use/agent/message_manager/views.py:77
↓ 3 callersMethodadd_model_output
Add model output as AI message
browser_use/agent/message_manager/views.py:85
↓ 3 callersFunctionbt
(e)
chrome-extension/lib/purify.min.js:2
↓ 3 callersMethodclose
Close all resources
browser_use/agent/service.py:1467
↓ 3 callersMethodconnect
Connect to a running browser profile using Playwright. Args: profile_id (str, optional): Profile ID to connect to (defaults to the one set
browser_use/browser/dolphin_service.py:246
↓ 3 callersMethoderrors
Get all errors from history, with None for steps without errors
browser_use/agent/views.py:287
↓ 3 callersFunctiongetCachedBoundingRect
(element)
browser_use/dom/buildDomTree.js:113
↓ 3 callersFunctiongetCurrentTaskId
()
chrome-extension/js/panel.js:117
↓ 3 callersMethodget_all_text_till_next_clickable_element
(self, max_depth: int = -1)
browser_use/dom/views.py:103
↓ 3 callersMethodget_locate_element
(self, element: DOMElementNode)
browser_use/browser/context.py:1189
↓ 3 callersMethodget_locate_element_by_css_selector
Locates an element on the page using the provided CSS selector.
browser_use/browser/context.py:1250
↓ 3 callersFunctiongt
()
chrome-extension/lib/purify.min.js:2
↓ 3 callersFunctioninjectContentScript
()
chrome-extension/js/panel.js:349
↓ 3 callersFunctionisInteractive
(el)
chrome-extension/js/elementProcess.js:57
↓ 3 callersFunctionisValidSelector
(selector)
chrome-extension/js/DOMListener.js:222
↓ 3 callersFunctionmaskString
(str)
chrome-extension/js/elementProcess.js:404
↓ 3 callersFunctionmeasureDomOperation
(operation, name)
browser_use/dom/buildDomTree.js:87
↓ 3 callersFunctionnodeToSelector
(node, contextNode)
chrome-extension/js/DOMListener.js:106
↓ 3 callersFunctionopenBGPort
()
chrome-extension/js/DOMListener.js:44
↓ 3 callersFunctionopenBGPort
()
chrome-extension/js/panel.js:321
↓ 3 callersFunctionsendToBG
(message)
chrome-extension/js/DOMListener.js:63
↓ 3 callersFunctionshowSettingsPanel
(show)
chrome-extension/js/panel.js:67
↓ 3 callersMethodstop
Stop the agent
browser_use/agent/service.py:1334
↓ 3 callersFunctiontime_execution_sync
(additional_text: str = '')
browser_use/utils.py:275
↓ 2 callersFunctionDt
(e)
chrome-extension/lib/purify.min.js:2
↓ 2 callersFunctionNt
(e)
chrome-extension/lib/purify.min.js:2
↓ 2 callersFunctionOt
(e,t,n)
chrome-extension/lib/purify.min.js:2
↓ 2 callersFunctionSt
(e)
chrome-extension/lib/purify.min.js:2
↓ 2 callersMethod_attributes_hash
(attributes: dict[str, str])
browser_use/dom/history_tree_processor/service.py:95
↓ 2 callersMethod_click_element_node
Optimized method to click an element using xpath.
browser_use/browser/context.py:1381
↓ 2 callersMethod_count_text_tokens
Count tokens in a text string
browser_use/agent/message_manager/service.py:242
↓ 2 callersFunction_extract_inner_text_tag_type
Return (inner_text, tag, input_type).
browser_use/wap/exact_replay.py:28
↓ 2 callersMethod_get_parent_branch_path
(dom_element: DOMElementNode)
browser_use/dom/history_tree_processor/service.py:78
↓ 2 callersMethod_handle_second_ctrl_c
Handle a second Ctrl+C press by performing cleanup and exiting. This is shared logic used by both sigint_handler and wait_for_resume.
browser_use/utils.py:120
↓ 2 callersMethod_hash_dom_history_element
(dom_history_element: DOMHistoryElement)
browser_use/dom/history_tree_processor/service.py:60
↓ 2 callersMethod_init
Initialize the browser session
browser_use/browser/browser.py:146
next →1–100 of 527, ranked by callers