Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
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
↓ 79 callers
Method
get
(self, key, default=None)
browser_use/browser/browser.py:55
↓ 40 callers
Method
get_current_page
Get the current page
browser_use/browser/context.py:418
↓ 37 callers
Function
w
(e,o)
chrome-extension/lib/purify.min.js:2
↓ 23 callers
Function
_make
Return {"action": action, "action_params": {…}}
browser_use/wap/exact_replay.py:23
↓ 20 callers
Method
model_dump
Custom serialization handling circular references
browser_use/agent/views.py:191
↓ 19 callers
Method
_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 callers
Function
R
(e)
chrome-extension/lib/purify.min.js:2
↓ 12 callers
Method
run
Execute the task with maximum number of steps
browser_use/agent/service.py:943
↓ 10 callers
Function
Et
(e)
chrome-extension/lib/purify.min.js:2
↓ 10 callers
Method
get_session
Lazy initialization of the browser and related components
browser_use/browser/context.py:408
↓ 9 callers
Function
Rt
(e,t,n)
chrome-extension/lib/purify.min.js:2
↓ 9 callers
Method
_remove_last_state_message
Remove last state message from history
browser_use/agent/message_manager/service.py:304
↓ 8 callers
Method
_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 callers
Method
add_state_message
Add browser state as human message
browser_use/agent/message_manager/service.py:111
↓ 8 callers
Method
get
(self, key, default=None)
browser_use/browser/context.py:61
↓ 8 callers
Function
getCurrentHTMLSanitized
()
chrome-extension/js/DOMListener.js:416
↓ 8 callers
Method
get_messages
Get all messages
browser_use/agent/message_manager/views.py:106
↓ 7 callers
Function
getEventHash
()
chrome-extension/js/DOMListener.js:371
↓ 7 callers
Method
get_selector_map
(self)
browser_use/browser/context.py:1548
↓ 7 callers
Method
get_state
Get the current state of the browser
browser_use/browser/context.py:881
↓ 7 callers
Function
measureTime
(fn)
browser_use/dom/buildDomTree.js:76
↓ 6 callers
Function
D
(t)
chrome-extension/lib/purify.min.js:2
↓ 6 callers
Function
callCommand
(cmd)
chrome-extension/js/ContentScriptProxy.js:4
↓ 6 callers
Function
enqueueByHash
* 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 callers
Method
_get_cdp_targets
Get all CDP targets directly using CDP protocol
browser_use/browser/context.py:1641
↓ 5 callers
Method
capture
(self, event: BaseTelemetryEvent)
browser_use/telemetry/service.py:62
↓ 5 callers
Method
close
Close the browser instance
browser_use/browser/browser.py:318
↓ 5 callers
Method
create_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 callers
Method
format
(self, record)
browser_use/logging_config.py:79
↓ 5 callers
Method
get_index
Get the index of the action
browser_use/controller/registry/views.py:45
↓ 5 callers
Method
get_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 callers
Function
highlightNode
(node, color)
chrome-extension/js/DOMListener.js:79
↓ 5 callers
Method
is_done
Check if the agent is done
browser_use/agent/views.py:303
↓ 5 callers
Method
multi_act
Execute multiple actions
browser_use/agent/service.py:1056
↓ 5 callers
Method
new_context
Create a browser context
browser_use/browser/browser.py:134
↓ 5 callers
Function
nodeToHTMLString
(node)
chrome-extension/js/DOMListener.js:134
↓ 5 callers
Function
nodeToObject
(node, contextNode)
chrome-extension/js/DOMListener.js:155
↓ 5 callers
Function
trimTarget
(node)
chrome-extension/js/elementProcess.js:348
↓ 5 callers
Function
v
(e,t)
chrome-extension/lib/purify.min.js:2
↓ 4 callers
Function
At
(e,t)
chrome-extension/lib/purify.min.js:2
↓ 4 callers
Method
_is_url_allowed
Check if a URL is allowed based on the whitelist configuration.
browser_use/browser/context.py:713
↓ 4 callers
Function
action_registry
()
browser_use/agent/tests.py:36
↓ 4 callers
Method
authenticate
Authenticate with Dolphin Anty API using the API token. Raises: Exception: If authentication fails.
browser_use/browser/dolphin_service.py:152
↓ 4 callers
Method
clickable_elements_to_string
Convert the processed DOM content to HTML.
browser_use/dom/views.py:124
↓ 4 callers
Method
close
Close the browser instance
browser_use/browser/context.py:277
↓ 4 callers
Function
dedupPush
(acc, evt)
chrome-extension/js/DOMListener.js:398
↓ 4 callers
Function
formatValue
(value)
chrome-extension/js/EventTable.js:8
↓ 4 callers
Function
getCachedComputedStyle
(element)
browser_use/dom/buildDomTree.js:146
↓ 4 callers
Function
highlightElement
* Highlights an element in the DOM and returns the index of the next element.
browser_use/dom/buildDomTree.js:193
↓ 4 callers
Method
model_actions
Get all actions from history
browser_use/agent/views.py:348
↓ 4 callers
Function
scoreEvent
(evt)
chrome-extension/js/DOMListener.js:407
↓ 4 callers
Function
sendPageContentUpdatetoBackground
(status)
chrome-extension/js/DOMListener.js:292
↓ 4 callers
Method
start
Main chat session handler.
mcp_client.py:336
↓ 4 callers
Method
switch_to_tab
Switch to a specific tab by its page_id
browser_use/browser/context.py:1460
↓ 4 callers
Method
type_with_custom_actions
Extend actions with custom actions
browser_use/agent/views.py:154
↓ 3 callers
Method
_check_and_handle_navigation
Check if current page URL is allowed and handle if not.
browser_use/browser/context.py:741
↓ 3 callers
Method
_count_tokens
Count tokens in a message using the model's tokenizer
browser_use/agent/message_manager/service.py:226
↓ 3 callers
Method
_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 callers
Method
_get_current_page
(self, session: BrowserSession)
browser_use/browser/context.py:1514
↓ 3 callers
Method
_handle_step_error
Handle all types of errors that can occur during a step
browser_use/agent/service.py:730
↓ 3 callers
Method
_hash_dom_element
(dom_element: DOMElementNode)
browser_use/dom/history_tree_processor/service.py:68
↓ 3 callers
Method
_initialize_session
Initialize the browser session
browser_use/browser/context.py:330
↓ 3 callers
Method
_make_history_item
Create and store history item
browser_use/agent/service.py:774
↓ 3 callers
Function
_queue
(payload)
chrome-extension/js/background.js:61
↓ 3 callers
Method
add_message
Add message with metadata to history
browser_use/agent/message_manager/views.py:77
↓ 3 callers
Method
add_model_output
Add model output as AI message
browser_use/agent/message_manager/views.py:85
↓ 3 callers
Function
bt
(e)
chrome-extension/lib/purify.min.js:2
↓ 3 callers
Method
close
Close all resources
browser_use/agent/service.py:1467
↓ 3 callers
Method
connect
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 callers
Method
errors
Get all errors from history, with None for steps without errors
browser_use/agent/views.py:287
↓ 3 callers
Function
getCachedBoundingRect
(element)
browser_use/dom/buildDomTree.js:113
↓ 3 callers
Function
getCurrentTaskId
()
chrome-extension/js/panel.js:117
↓ 3 callers
Method
get_all_text_till_next_clickable_element
(self, max_depth: int = -1)
browser_use/dom/views.py:103
↓ 3 callers
Method
get_locate_element
(self, element: DOMElementNode)
browser_use/browser/context.py:1189
↓ 3 callers
Method
get_locate_element_by_css_selector
Locates an element on the page using the provided CSS selector.
browser_use/browser/context.py:1250
↓ 3 callers
Function
gt
()
chrome-extension/lib/purify.min.js:2
↓ 3 callers
Function
injectContentScript
()
chrome-extension/js/panel.js:349
↓ 3 callers
Function
isInteractive
(el)
chrome-extension/js/elementProcess.js:57
↓ 3 callers
Function
isValidSelector
(selector)
chrome-extension/js/DOMListener.js:222
↓ 3 callers
Function
maskString
(str)
chrome-extension/js/elementProcess.js:404
↓ 3 callers
Function
measureDomOperation
(operation, name)
browser_use/dom/buildDomTree.js:87
↓ 3 callers
Function
nodeToSelector
(node, contextNode)
chrome-extension/js/DOMListener.js:106
↓ 3 callers
Function
openBGPort
()
chrome-extension/js/DOMListener.js:44
↓ 3 callers
Function
openBGPort
()
chrome-extension/js/panel.js:321
↓ 3 callers
Function
sendToBG
(message)
chrome-extension/js/DOMListener.js:63
↓ 3 callers
Function
showSettingsPanel
(show)
chrome-extension/js/panel.js:67
↓ 3 callers
Method
stop
Stop the agent
browser_use/agent/service.py:1334
↓ 3 callers
Function
time_execution_sync
(additional_text: str = '')
browser_use/utils.py:275
↓ 2 callers
Function
Dt
(e)
chrome-extension/lib/purify.min.js:2
↓ 2 callers
Function
Nt
(e)
chrome-extension/lib/purify.min.js:2
↓ 2 callers
Function
Ot
(e,t,n)
chrome-extension/lib/purify.min.js:2
↓ 2 callers
Function
St
(e)
chrome-extension/lib/purify.min.js:2
↓ 2 callers
Method
_attributes_hash
(attributes: dict[str, str])
browser_use/dom/history_tree_processor/service.py:95
↓ 2 callers
Method
_click_element_node
Optimized method to click an element using xpath.
browser_use/browser/context.py:1381
↓ 2 callers
Method
_count_text_tokens
Count tokens in a text string
browser_use/agent/message_manager/service.py:242
↓ 2 callers
Function
_extract_inner_text_tag_type
Return (inner_text, tag, input_type).
browser_use/wap/exact_replay.py:28
↓ 2 callers
Method
_get_parent_branch_path
(dom_element: DOMElementNode)
browser_use/dom/history_tree_processor/service.py:78
↓ 2 callers
Method
_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 callers
Method
_hash_dom_history_element
(dom_history_element: DOMHistoryElement)
browser_use/dom/history_tree_processor/service.py:60
↓ 2 callers
Method
_init
Initialize the browser session
browser_use/browser/browser.py:146
next →
1–100 of 527, ranked by callers