MCPcopy Create free account

hub / github.com/HKUDS/AnyTool / functions

Functions999 in github.com/HKUDS/AnyTool

↓ 2 callersMethodset_backend_policy
(self, backend_type: BackendType, policy: SecurityPolicy)
anytool/grounding/core/security/policies.py:54
↓ 2 callersMethodstop
Stop the connection manager and close the connection. Args: timeout: Maximum time to wait for cleanup (default 5s).
anytool/grounding/core/transport/task_managers/base.py:127
↓ 2 callersMethodupdate_metrics
Update metrics
anytool/utils/ui.py:405
↓ 1 callersMethod__init__
Initialize ToolRanker. Args: model_name: Embedding model name. If None, will use env or config value. cache_d
anytool/grounding/core/search_tools.py:38
↓ 1 callersMethod__init__
Initialize the wrapper. Args: wrapped_stream: The underlying stderr stream
anytool/grounding/backends/mcp/transport/task_managers/stdio.py:32
↓ 1 callersMethod__init__
( self, *, session_id: str, config: SessionConfig, deep_research_api_k
anytool/grounding/backends/web/session.py:78
↓ 1 callersMethod_add_tool_result
Add tool result to message history. IMPORTANT: Put screenshot BEFORE text for consistency with initial message.
anytool/grounding/backends/gui/anthropic_client.py:403
↓ 1 callersMethod_after_connect
Hook called after connection is established. Override in subclasses if needed.
anytool/grounding/core/transport/connectors/base.py:79
↓ 1 callersMethod_append_to_file
Append action to JSONL file.
anytool/recording/action_recorder.py:157
↓ 1 callersMethod_append_to_traj_file
Add step to traj.jsonl file
anytool/recording/recorder.py:182
↓ 1 callersMethod_arun
(self, **kwargs)
anytool/grounding/core/tool/local_tool.py:28
↓ 1 callersMethod_auto_record_execution
Auto-record tool execution to recording manager and quality manager.
anytool/grounding/core/tool/base.py:236
↓ 1 callersMethod_auto_record_tool_results
Internal method: automatically record tool execution results from LLM client This is called by register_to_llm() wrapper. To
anytool/recording/manager.py:511
↓ 1 callersMethod_before_connect
Hook called before establishing connection. Override in subclasses if needed.
anytool/grounding/core/transport/connectors/base.py:75
↓ 1 callersMethod_before_connect
Negotiate transport type and set up the appropriate connection manager. Tries transports in order: 1. Streamable HTTP (new MC
anytool/grounding/backends/mcp/transport/connectors/http.py:132
↓ 1 callersMethod_before_disconnect
Hook called before disconnection. Override in subclasses if needed.
anytool/grounding/core/transport/connectors/base.py:92
↓ 1 callersMethod_before_disconnect
Clean up resources before disconnection.
anytool/grounding/backends/mcp/transport/connectors/http.py:346
↓ 1 callersMethod_build_final_result
Build final execution result. Args: instruction: Original instruction messages: Complete conversatio
anytool/agents/grounding_agent.py:878
↓ 1 callersMethod_build_planning_prompt
Build prompt for LLM planning. Args: task_description: The task to accomplish action_history: Previo
anytool/grounding/backends/gui/tool.py:397
↓ 1 callersMethod_capture_screenshot
Capture screenshot automatically through platform.ScreenshotClient
anytool/recording/recorder.py:147
↓ 1 callersMethod_check_npm_package
Check if the npm package is globally installed. Args: package_name: npm package name Returns:
anytool/grounding/backends/mcp/installer.py:256
↓ 1 callersMethod_check_package_installed
Check if the package is installed. Args: command: The command to check (e.g. "npx", "uvx") args: The argument
anytool/grounding/backends/mcp/installer.py:117
↓ 1 callersMethod_check_python_package
Check if the Python package is installed as a uvx tool. uvx tools are installed in ~/.local/share/uv/tools/ directory, not in
anytool/grounding/backends/mcp/installer.py:279
↓ 1 callersMethod_check_server_availability
Check if local server is available
anytool/recording/manager.py:394
↓ 1 callersMethod_check_task_completion
(self, messages: List[Dict])
anytool/agents/grounding_agent.py:997
↓ 1 callersMethod_check_task_status
(self, response: str, execution_result: str, last_error: str)
anytool/grounding/backends/shell/session.py:432
↓ 1 callersMethod_check_uv_pip_package
Check if a Python package is installed via uv pip. Args: package_name: Python package name Returns:
anytool/grounding/backends/mcp/installer.py:326
↓ 1 callersMethod_check_workspace_artifacts
Check workspace directory for existing artifacts that might be relevant to the task. Enhanced to detect if task might already be comp
anytool/agents/grounding_agent.py:736
↓ 1 callersMethod_cleanup_on_connect_failure
Hook called when connection fails. Override in subclasses if needed.
anytool/grounding/core/transport/connectors/base.py:83
↓ 1 callersMethod_cleanup_on_connect_failure
Override to add MCP-specific cleanup on connection failure.
anytool/grounding/backends/mcp/transport/connectors/base.py:113
↓ 1 callersMethod_cleanup_screenshot_client
Cleanup screenshot client resources
anytool/recording/recorder.py:251
↓ 1 callersMethod_close_connection
Close the connection. This method should be implemented by subclasses to close the specific type of connection.
anytool/grounding/core/transport/task_managers/base.py:49
↓ 1 callersMethod_connection_task
Run the connection task. This task establishes and maintains the connection until cancelled.
anytool/grounding/core/transport/task_managers/base.py:162
↓ 1 callersFunction_create_argument_parser
Create command-line argument parser
anytool/__main__.py:142
↓ 1 callersFunction_deep_merge_dict
Deep merge two dictionaries, update's values will override base's values
anytool/config/loader.py:26
↓ 1 callersFunction_deep_sanitize
Recursively sanitize a JSON schema to conform to JSON Schema draft 2020-12. Removes non-standard fields and ensures valid structure.
anytool/grounding/backends/mcp/tool_converter.py:54
↓ 1 callersMethod_default_system_prompt
Default system prompt for the grounding agent.
anytool/agents/grounding_agent.py:364
↓ 1 callersMethod_detect_screen_device
Return the screen device number of avfoundation, like '1:none' On macOS, ffmpeg -f avfoundation -list_devices true -i "" wil
anytool/local_server/platform_adapters/macos_adapter.py:393
↓ 1 callersMethod_dispatch_run
(self, **kwargs)
anytool/grounding/core/tool/local_tool.py:14
↓ 1 callersMethod_enhance_result_with_visual_context
Enhance tool result with visual analysis for grounding agent workflows.
anytool/agents/grounding_agent.py:522
↓ 1 callersMethod_ensure_dependencies_impl
Internal implementation of ensure_dependencies (called within lock).
anytool/grounding/backends/mcp/installer.py:564
↓ 1 callersMethod_ensure_model
Ensure embedding model is ready (local or remote).
anytool/grounding/core/search_tools.py:256
↓ 1 callersMethod_establish_connection
Establish the connection. This method should be implemented by subclasses to establish the specific type of connection needed.
anytool/grounding/core/transport/task_managers/base.py:34
↓ 1 callersMethod_execute_code_from_response
execute the code and track the code block Returns: Tuple[Optional[Dict], str]: (code_info, execution_result)
anytool/grounding/backends/shell/session.py:353
↓ 1 callersMethod_execute_planned_action
Execute a planned action through the connector. Args: action: Action dict with action_type and parameters
anytool/grounding/backends/gui/tool.py:477
↓ 1 callersMethod_execute_task_with_planning
Execute task with LLM-based planning loop. Planning loop: 1. Observe: Get screenshot 2. Plan: LLM decides ne
anytool/grounding/backends/gui/tool.py:123
↓ 1 callersFunction_execute_tool_call
Execute LLMClient returned tool_call Args: tool: BaseTool instance (must be obtained from GroundingClient and bound to runtime_info)
anytool/llm/client.py:261
↓ 1 callersMethod_find_terminals
Recursively find terminal components
anytool/local_server/platform_adapters/linux_adapter.py:348
↓ 1 callersMethod_fix_pyautogui_less_than_bug
Fix PyAutoGUI '<' character bug.
anytool/grounding/backends/gui/transport/local_connector.py:127
↓ 1 callersMethod_fix_pyautogui_less_than_bug
Fix PyAutoGUI '<' character bug by converting it to hotkey("shift", ',') calls. This fixes the known PyAutoGUI issue where t
anytool/grounding/backends/gui/transport/connector.py:110
↓ 1 callersMethod_flatten_node
Recursively flatten nodes
anytool/local_server/utils/accessibility.py:84
↓ 1 callersMethod_format_action_command
Format planned action into a human-readable command string. Args: planned_action: Action dictionary from LLM pla
anytool/grounding/backends/gui/tool.py:674
↓ 1 callersFunction_format_compact
Compact format: one line per step.
anytool/recording/utils.py:59
↓ 1 callersFunction_format_detailed
Detailed format: multiple lines per step with parameters.
anytool/recording/utils.py:76
↓ 1 callersFunction_format_markdown
Markdown format: table format.
anytool/recording/utils.py:115
↓ 1 callersMethod_format_tool_executions
(self, all_tool_results: List[Dict])
anytool/agents/grounding_agent.py:945
↓ 1 callersMethod_generate_feedback
(self, result: str, iteration: int, last_error: str)
anytool/grounding/backends/shell/session.py:399
↓ 1 callersMethod_generate_search_query
(self, task_prompt: str)
anytool/grounding/core/search_tools.py:1001
↓ 1 callersMethod_get_accessibility_helper
(self)
anytool/grounding/backends/gui/transport/local_connector.py:66
↓ 1 callersMethod_get_available_tools
Retrieve tools with auto-search + cap to control prompt bloat. Falls back to returning all tools if search fails.
anytool/agents/grounding_agent.py:414
↓ 1 callersMethod_get_cursor
Get current cursor image and hotspot Returns: (cursor_image, (hotspot_x, hotspot_y))
anytool/local_server/platform_adapters/windows_adapter.py:70
↓ 1 callersMethod_get_default_log_file
Generate default log file path with timestamp (to seconds) Log files are organized by the running script name: - logs/<script
anytool/utils/logging.py:98
↓ 1 callersFunction_get_machine_architecture
Get the machine architecture, e.g., x86_64, arm64, aarch64, i386, etc. Returns 'amd' for x86/AMD architectures, 'arm' for ARM architectures, or 'u
anytool/local_server/main.py:368
↓ 1 callersMethod_get_streams_from_connection
Get read and write streams from the connection. Override in subclasses if needed.
anytool/grounding/backends/mcp/transport/connectors/base.py:60
↓ 1 callersMethod_get_system_info
Get system information for shell agent. First tries to get comprehensive info from local server's /platform endpoint.
anytool/grounding/backends/shell/session.py:135
↓ 1 callersMethod_get_terminal_size
Get terminal size
anytool/utils/ui.py:80
↓ 1 callersMethod_get_workspace_path
Get workspace directory path from context.
anytool/agents/grounding_agent.py:669
↓ 1 callersMethod_handle_other_json
Fallback implementation for PUT/PATCH/DELETE returning JSON/text, can be overridden by subclasses.
anytool/grounding/core/transport/connectors/aiohttp_connector.py:138
↓ 1 callersMethod_hide_cursor
Hide cursor
anytool/utils/ui.py:100
↓ 1 callersMethod_hybrid_search
( self, query: str, tools: Iterable[BaseTool], top_k: int )
anytool/grounding/core/search_tools.py:404
↓ 1 callersMethod_infer_agent_type
(self, agent_name: str)
anytool/recording/action_recorder.py:110
↓ 1 callersMethod_init_local_embedding
Initialize local fastembed model.
anytool/grounding/core/search_tools.py:289
↓ 1 callersMethod_init_quality_manager
Initialize tool quality manager based on config.
anytool/grounding/core/grounding_client.py:116
↓ 1 callersMethod_init_remote_embedding
Initialize remote embedding API (OpenRouter/OpenAI compatible).
anytool/grounding/core/search_tools.py:265
↓ 1 callersFunction_initialize_anytool
(config: AnyToolConfig, args)
anytool/__main__.py:375
↓ 1 callersMethod_install_package
Execute the install command. Args: command: The command to execute (e.g. "npx", "uvx") args: The arguments li
anytool/grounding/backends/mcp/installer.py:368
↓ 1 callersMethod_is_valid_image_response
Validate image response using magic bytes. Args: content_type: HTTP Content-Type header data: Respon
anytool/platform/screenshot.py:53
↓ 1 callersMethod_is_valid_image_response
Validate image response using magic bytes.
anytool/grounding/backends/gui/transport/connector.py:94
↓ 1 callersMethod_lazy_create
Internal helper for lazy session creation. Args: server: Server name to create session for Raises:
anytool/grounding/backends/mcp/provider.py:442
↓ 1 callersFunction_lazy_import_provider
Lazy import provider class
anytool/grounding/backends/__init__.py:3
↓ 1 callersMethod_list_tools_live
List tools by starting all servers. Uses a semaphore to serialize session creation, avoiding TaskGroup race conditions that o
anytool/grounding/backends/mcp/provider.py:330
↓ 1 callersMethod_live_update_loop
Live update loop
anytool/utils/ui.py:181
↓ 1 callersMethod_llm_filter_with_planning
LLM pre-filter for MCP servers. Returns (utility_tools, domain_tools, llm_filter_info).
anytool/grounding/core/search_tools.py:864
↓ 1 callersFunction_load_config
Load configuration
anytool/__main__.py:322
↓ 1 callersFunction_load_log_level_from_config
Load log_level from config_grounding.json and convert to ANYTOOL_DEBUG value. Returns: 0 (WARNING), 1 (INFO), or 2 (DEBUG)
anytool/utils/logging.py:14
↓ 1 callersFunction_load_multiple_files
Load configuration from multiple files
anytool/config/loader.py:53
↓ 1 callersMethod_load_persistent_cache
Load embeddings from disk cache.
anytool/grounding/core/search_tools.py:120
↓ 1 callersMethod_load_tools_from_cache
Load tools from cache file without starting servers. Priority: 1. Try to load from sanitized cache (mcp_tool_cache_sanitized.
anytool/grounding/backends/mcp/provider.py:248
↓ 1 callersMethod_log_search_results
Log search results in a concise, grouped format. Shows backend/server breakdown and tool names (truncated if too many).
anytool/grounding/core/search_tools.py:1014
↓ 1 callersFunction_make_shim
Create a shim that wraps streamablehttp_client with improved error handling.
anytool/grounding/backends/mcp/transport/task_managers/streamable_http.py:21
↓ 1 callersMethod_maybe_evolve_quality
Trigger quality evolution based on global execution count.
anytool/tool_layer.py:326
↓ 1 callersMethod_monitor_loop
Main monitoring loop Args: poll_interval: Update interval in seconds
anytool/utils/ui_integration.py:97
↓ 1 callersMethod_next_jsonrpc_id
Get next JSON-RPC request ID.
anytool/grounding/backends/mcp/transport/connectors/http.py:369
↓ 1 callersMethod_parse_computer_tool_use
Parse Anthropic computer tool use to pyautogui command. Args: tool_input: Tool input from Anthropic (action, coo
anytool/grounding/backends/gui/anthropic_client.py:442
↓ 1 callersMethod_parse_llm_response
Parse LLM response to extract action. Args: response: LLM response (should be JSON) Returns:
anytool/grounding/backends/gui/tool.py:448
↓ 1 callersMethod_plan_next_action
Use LLM/VLM to plan the next action. This method sends: - Task description - Current screenshot (vision inpu
anytool/grounding/backends/gui/tool.py:265
↓ 1 callersFunction_prepare_tools_for_llmclient
Convert BaseTool list to LLMClient usable format, with deduplication. Args: tools: BaseTool instance list (should be obtained from Gr
anytool/llm/client.py:94
↓ 1 callersFunction_print_status
Print system status
anytool/__main__.py:112
↓ 1 callersMethod_receive_messages
Continuously receive and process messages from the WebSocket.
anytool/grounding/backends/mcp/transport/connectors/websocket.py:78
↓ 1 callersMethod_record_agent_execution
Record agent execution to recording manager. Args: result: Execution result instruction: Original in
anytool/agents/grounding_agent.py:1010
← previousnext →201–300 of 999, ranked by callers