Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/browser-use/macOS-use
/ functions
Functions
210 in github.com/browser-use/macOS-use
⨍
Functions
210
◇
Types & classes
47
↳
Endpoints
2
↓ 51 callers
Method
update
(self, action_name: str, success: bool = True, element_info: str = '')
examples/basic_agent.py:63
↓ 22 callers
Method
run
Execute the task with maximum number of steps
mlx_use/agent/service.py:402
↓ 12 callers
Method
model_dump
Custom serialization handling circular references
mlx_use/agent/views.py:70
↓ 11 callers
Method
_get_attribute
Safely get an accessibility attribute with error reporting
mlx_use/mac/tree.py:79
↓ 10 callers
Method
_add_message_with_tokens
(self, message: BaseMessage)
mlx_use/agent/message_manager/service.py:160
↓ 8 callers
Method
_cleanup_state
Reset all state variables
gradio_app/src/models/app.py:42
↓ 7 callers
Method
done
(text: str)
mlx_use/controller/service.py:43
↓ 6 callers
Method
get_messages
(self)
mlx_use/agent/message_manager/service.py:150
↓ 6 callers
Method
get_terminal_output
Get accumulated terminal output
gradio_app/src/models/app.py:59
↓ 5 callers
Method
add_state_message
Add browser state as human message
mlx_use/agent/message_manager/service.py:95
↓ 5 callers
Method
capture
(self, event: BaseTelemetryEvent)
mlx_use/telemetry/service.py:60
↓ 5 callers
Function
format_agents_list
(agents)
gradio_app/app.py:38
↓ 5 callers
Function
perform_action
Performs a specified accessibility action on an element.
mlx_use/mac/actions.py:19
↓ 4 callers
Method
build_tree
Build UI tree for a specific application
mlx_use/mac/tree.py:258
↓ 4 callers
Method
cleanup
Cleanup observers and release resources
mlx_use/mac/tree.py:229
↓ 4 callers
Function
click
Simulates a click on a Mac UI element.
mlx_use/mac/actions.py:43
↓ 4 callers
Method
format
(self, record)
mlx_use/logging_config.py:79
↓ 4 callers
Method
get_clickable_elements_string
Convert the UI tree to a string representation focusing on interactive and context elements
mlx_use/mac/element.py:77
↓ 3 callers
Method
_remove_last_state_message
(self)
mlx_use/agent/message_manager/service.py:123
↓ 3 callers
Method
get_automation_agents
Get the list of agents for an automation flow
gradio_app/src/models/app.py:153
↓ 3 callers
Function
get_llm
Initialize LLM based on provider
gradio_app/src/models/llm_models.py:15
↓ 3 callers
Method
get_saved_api_key
Get saved API key from .env file based on provider
gradio_app/src/models/app.py:219
↓ 3 callers
Method
model_actions
Get all actions from history
mlx_use/agent/views.py:180
↓ 3 callers
Method
save_api_key_to_env
Save API key to .env file based on provider
gradio_app/src/models/app.py:160
↓ 3 callers
Method
save_preferences
Save user preferences to JSON file
gradio_app/src/models/app.py:240
↓ 3 callers
Function
set_llm
(llm_provider:str = None)
examples/try.py:18
↓ 3 callers
Function
type_into
Simulates typing text into a Mac UI element with action-based submission
mlx_use/mac/actions.py:62
↓ 3 callers
Function
update_category_visibility
(category)
gradio_app/src/ui/interface.py:165
↓ 2 callers
Method
_count_text_tokens
(self, text: str)
mlx_use/agent/message_manager/service.py:180
↓ 2 callers
Method
_count_tokens
(self, message: BaseMessage)
mlx_use/agent/message_manager/service.py:165
↓ 2 callers
Method
add_model_output
(self, model_output: AgentOutput)
mlx_use/agent/message_manager/service.py:127
↓ 2 callers
Method
errors
Get all errors from history
mlx_use/agent/views.py:139
↓ 2 callers
Method
extract_result_text
Extract the result text from the output by checking various formats.
gradio_app/src/models/app.py:180
↓ 2 callers
Method
get_last_pid
Get the last pid from the last result
mlx_use/agent/service.py:183
↓ 2 callers
Method
is_done
Check if the agent is done
mlx_use/agent/views.py:152
↓ 2 callers
Method
multi_act
Execute multiple actions
mlx_use/controller/service.py:275
↓ 2 callers
Method
remove_message
Remove last message from history
mlx_use/agent/message_manager/views.py:33
↓ 2 callers
Function
set_llm
(llm_provider:str = None)
examples/excel.py:18
↓ 2 callers
Function
set_llm
(llm_provider:str = None)
examples/login_to_auth0.py:17
↓ 2 callers
Function
set_llm
(llm_provider:str = None)
examples/lunch_notes.py:18
↓ 2 callers
Function
set_llm
(llm_provider:str = None)
examples/check_time_online.py:18
↓ 2 callers
Function
set_llm
(llm_provider:str = None)
examples/calculate.py:18
↓ 2 callers
Function
setup_logging
()
mlx_use/logging_config.py:61
↓ 2 callers
Method
update_llm_preferences
Update LLM provider and model preferences
gradio_app/src/models/app.py:258
↓ 1 callers
Method
__repr__
Enhanced string representation including more attributes
mlx_use/mac/element.py:43
↓ 1 callers
Method
__str__
Representation of the AgentHistoryList object
mlx_use/agent/views.py:94
↓ 1 callers
Method
_convert_initial_actions
Convert dictionary-based actions to ActionModel instances
mlx_use/agent/service.py:470
↓ 1 callers
Method
_create_param_model
Creates a Pydantic model from function signature
mlx_use/controller/registry/service.py:30
↓ 1 callers
Method
_direct_capture
Should not be thread blocking because posthog magically handles it
mlx_use/telemetry/service.py:68
↓ 1 callers
Method
_get_actions
Get available actions for an element with proper error handling
mlx_use/mac/tree.py:95
↓ 1 callers
Method
_get_app_pid
Get or launch target application PID
mlx_use/mac/context.py:98
↓ 1 callers
Method
_handle_control_flags
Handle pause and stop flags. Returns True if execution should continue.
mlx_use/agent/service.py:451
↓ 1 callers
Method
_handle_step_error
Handle all types of errors that can occur during a step
mlx_use/agent/service.py:262
↓ 1 callers
Method
_handle_ui_change
Handle UI change notifications
mlx_use/mac/context.py:180
↓ 1 callers
Method
_is_interactive
Determine if an element is truly interactive based on its role and actions.
mlx_use/mac/tree.py:107
↓ 1 callers
Method
_log_agent_run
Log the agent run
mlx_use/agent/service.py:384
↓ 1 callers
Method
_log_response
Log the model's response
mlx_use/agent/service.py:330
↓ 1 callers
Method
_make_history_item
Create and store history item
mlx_use/agent/service.py:290
↓ 1 callers
Method
_process_element
Process a single UI element
mlx_use/mac/tree.py:128
↓ 1 callers
Method
_register_default_actions
Register all default browser actions
mlx_use/controller/service.py:37
↓ 1 callers
Method
_save_conversation
Save conversation history to file if path is specified
mlx_use/agent/service.py:345
↓ 1 callers
Method
_set_model_names
(self)
mlx_use/agent/service.py:156
↓ 1 callers
Method
_set_version_and_source
(self)
mlx_use/agent/service.py:149
↓ 1 callers
Method
_setup_action_models
Setup dynamic action models from controller's registry
mlx_use/agent/service.py:165
↓ 1 callers
Method
_setup_observer
Set up accessibility observer for UI changes
mlx_use/mac/context.py:79
↓ 1 callers
Method
_setup_observer
Setup accessibility observer for an application
mlx_use/mac/tree.py:75
↓ 1 callers
Method
_too_many_failures
Check if we should stop due to too many failures
mlx_use/agent/service.py:444
↓ 1 callers
Method
_write_messages_to_file
Write messages to conversation file
mlx_use/agent/service.py:361
↓ 1 callers
Method
_write_response_to_file
Write model response to conversation file
mlx_use/agent/service.py:379
↓ 1 callers
Method
act
Execute an action
mlx_use/controller/service.py:291
↓ 1 callers
Method
action_results
Get all results from history
mlx_use/agent/views.py:191
↓ 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
mlx_use/logging_config.py:10
↓ 1 callers
Method
add_agent_to_automation
Add a new agent to an automation flow
gradio_app/src/models/app.py:121
↓ 1 callers
Method
add_automation
Add a new automation flow
gradio_app/src/models/app.py:110
↓ 1 callers
Method
add_message
Add a message with metadata
mlx_use/agent/message_manager/views.py:28
↓ 1 callers
Method
click_element
Click element by index
mlx_use/mac/context.py:152
↓ 1 callers
Method
close
Clean up application session
mlx_use/mac/context.py:115
↓ 1 callers
Method
create_action_model
Creates a Pydantic model from registered actions
mlx_use/controller/registry/service.py:119
↓ 1 callers
Function
create_agent_tab
(app_instance)
gradio_app/src/ui/interface.py:4
↓ 1 callers
Function
create_automations_tab
(app_instance)
gradio_app/src/ui/interface.py:206
↓ 1 callers
Function
create_configuration_tab
(app_instance)
gradio_app/src/ui/interface.py:260
↓ 1 callers
Function
create_interface
Create the Gradio interface with all components.
gradio_app/app.py:17
↓ 1 callers
Method
cut_messages
(self)
mlx_use/agent/message_manager/service.py:191
↓ 1 callers
Method
execute_action
Execute a registered action
mlx_use/controller/registry/service.py:87
↓ 1 callers
Function
find_available_port
Find an available port starting from start_port
gradio_app/app.py:261
↓ 1 callers
Method
focus_window
Focus a specific application window
mlx_use/mac/context.py:168
↓ 1 callers
Method
format_error
Format error message based on error type and optionally include trace
mlx_use/agent/views.py:224
↓ 1 callers
Method
get_context
(self, ui_tree_string: str)
examples/basic_agent.py:55
↓ 1 callers
Method
get_detailed_info
Return a detailed string with all attributes of the element
mlx_use/mac/element.py:114
↓ 1 callers
Method
get_frontmost_app
Get name of frontmost application
mlx_use/mac/context.py:134
↓ 1 callers
Method
get_llm_response
Get a direct response from the LLM model without using the Agent
gradio_app/src/models/app.py:365
↓ 1 callers
Method
get_next_action
Get next action from LLM based on current state
mlx_use/agent/service.py:310
↓ 1 callers
Method
get_prompt_description
Get a description of all actions for the prompt
mlx_use/controller/registry/service.py:140
↓ 1 callers
Method
get_state
Get current application UI state
mlx_use/mac/context.py:121
↓ 1 callers
Method
get_system_message
Creates and returns a SystemMessage with formatted content.
mlx_use/agent/prompts.py:109
↓ 1 callers
Method
get_user_message
Creates and returns a HumanMessage with formatted content.
mlx_use/agent/prompts.py:158
↓ 1 callers
Method
important_rules
Returns a string containing important rules for the system.
mlx_use/agent/prompts.py:20
↓ 1 callers
Method
initialize
Initialize application session
mlx_use/mac/context.py:69
↓ 1 callers
Method
input_format
Returns a string describing the expected input format.
mlx_use/agent/prompts.py:96
↓ 1 callers
Method
load_preferences
Load user preferences from JSON file
gradio_app/src/models/app.py:230
next →
1–100 of 210, ranked by callers