Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HKUDS/AnyTool
/ functions
Functions
999 in github.com/HKUDS/AnyTool
⨍
Functions
999
◇
Types & classes
151
↳
Endpoints
24
↓ 1 callers
Method
_record_gui
(self, tool_call, result)
anytool/recording/manager.py:581
↓ 1 callers
Method
_record_mcp
(self, tool_call, result, server: str)
anytool/recording/manager.py:553
↓ 1 callers
Method
_record_shell
(self, tool_call, result)
anytool/recording/manager.py:642
↓ 1 callers
Method
_record_system
(self, tool_call, result)
anytool/recording/manager.py:699
↓ 1 callers
Method
_record_to_quality_manager
Record execution result to quality manager for quality tracking.
anytool/grounding/core/tool/base.py:288
↓ 1 callers
Method
_record_web
(self, tool_call, result)
anytool/recording/manager.py:732
↓ 1 callers
Method
_register_providers_from_config
Based on GroundingConfig.enabled_backends, register Provider instances to self._registry. Here only do *instantiation*, not a
anytool/grounding/core/grounding_client.py:59
↓ 1 callers
Method
_register_self
Register the agent class in the registry upon instantiation.
anytool/agents/base.py:149
↓ 1 callers
Method
_register_system_provider
Register SystemProvider separately because it requires GroundingClient instance. SystemProvider provides meta-level tools for queryin
anytool/grounding/core/grounding_client.py:102
↓ 1 callers
Method
_register_temp_file
Register a temporary file for later cleanup
anytool/local_server/health_checker.py:69
↓ 1 callers
Method
_render_agents
Render agents section
anytool/utils/ui.py:250
↓ 1 callers
Method
_render_grounding
Render grounding operations section
anytool/utils/ui.py:282
↓ 1 callers
Method
_render_header
Render header section
anytool/utils/ui.py:221
↓ 1 callers
Method
_render_logs
Render logs section
anytool/utils/ui.py:337
↓ 1 callers
Method
_reorder_servers
Reorder servers dict according to _server_order.
anytool/grounding/backends/mcp/tool_cache.py:34
↓ 1 callers
Method
_resize_screenshot
Resize screenshot to display size for Computer Use API. For computer-use-2025-01-24, the screenshot must be resized to the
anytool/grounding/backends/gui/anthropic_client.py:146
↓ 1 callers
Method
_restore_logs
(self)
anytool/__main__.py:59
↓ 1 callers
Method
_restore_mcp_logging
Restore MCP SDK logging to normal.
anytool/grounding/backends/mcp/transport/task_managers/stdio.py:342
↓ 1 callers
Method
_run
(self, **kwargs)
anytool/grounding/core/tool/local_tool.py:11
↓ 1 callers
Method
_run_shell_command
Run a shell command string (used for conda-wrapped scripts).
anytool/grounding/backends/shell/transport/local_connector.py:191
↓ 1 callers
Method
_sanitize_and_save_cache
Sanitize raw cache and save to sanitized cache file.
anytool/grounding/backends/mcp/provider.py:273
↓ 1 callers
Function
_sanitize_schema
Sanitize tool parameter schema to comply with Claude API requirements. Fixes common issues: - Empty object schemas (no properties, no req
anytool/llm/client.py:22
↓ 1 callers
Method
_save_tools_to_cache
Save tools metadata to cache file.
anytool/grounding/backends/mcp/provider.py:401
↓ 1 callers
Method
_scale_coordinates
Scale coordinates from display size to actual screen size. The API returns coordinates in display_size (e.g., 1024x768).
anytool/grounding/backends/gui/anthropic_client.py:160
↓ 1 callers
Method
_scan_workspace_files
Scan workspace directory and collect file information. Args: workspace_path: Path to workspace directory
anytool/agents/grounding_agent.py:675
↓ 1 callers
Function
_schema_to_openai
Convert ToolSchema to OpenAI ChatCompletion tool format
anytool/llm/client.py:71
↓ 1 callers
Method
_select_key_screenshots
Select key screenshots if there are too many.
anytool/agents/grounding_agent.py:623
↓ 1 callers
Method
_serialize_atspi_element
Serialize AT-SPI element to dictionary Args: element: AT-SPI accessible element depth: Current depth
anytool/local_server/platform_adapters/linux_adapter.py:164
↓ 1 callers
Method
_serialize_ax_element
Serialize macOS accessibility element to dictionary Args: element: AX element depth: Current depth
anytool/local_server/platform_adapters/macos_adapter.py:210
↓ 1 callers
Method
_serialize_uia_element
Serialize Windows UIA element to dictionary Args: element: UIA element depth: Current depth
anytool/local_server/platform_adapters/windows_adapter.py:231
↓ 1 callers
Method
_set_embedding
Store embedding in structured cache.
anytool/grounding/core/search_tools.py:324
↓ 1 callers
Method
_setup_security_policy
(self, config: dict | None = None)
anytool/grounding/core/provider.py:30
↓ 1 callers
Function
_setup_ui
(args)
anytool/__main__.py:364
↓ 1 callers
Method
_show_cursor
Show cursor
anytool/utils/ui.py:105
↓ 1 callers
Method
_stdout_supports_color
()
anytool/utils/logging.py:278
↓ 1 callers
Function
_summarize_tool_result
Use LLM to summarize large tool results.
anytool/llm/client.py:153
↓ 1 callers
Method
_suppress_logs
(self)
anytool/__main__.py:52
↓ 1 callers
Method
_suppress_mcp_json_errors
Suppress MCP SDK's JSON parsing error logs. The MCP SDK logs errors when it receives non-JSON messages from servers. These ar
anytool/grounding/backends/mcp/transport/task_managers/stdio.py:323
↓ 1 callers
Method
_to_json_compatible
Convert a Pydantic BaseModel to a JSON-serialisable dict (by_alias=True). Leave all other types unchanged.
anytool/grounding/core/transport/connectors/base.py:106
↓ 1 callers
Function
_tool_result_to_message_async
Convert ToolResult to LLMClient usable message format with LLM summarization for large results. Args: result: Tool execution result
anytool/llm/client.py:208
↓ 1 callers
Method
_touch
(self)
anytool/grounding/core/session.py:106
↓ 1 callers
Method
_truncate_messages
( self, messages: List[Dict[str, Any]], keep_recent: int = 8, max_tokens_est
anytool/agents/grounding_agent.py:73
↓ 1 callers
Method
_try_jsonrpc_connection
Test JSON-RPC HTTP connection by sending an initialize request.
anytool/grounding/backends/mcp/transport/connectors/http.py:298
↓ 1 callers
Method
_wrap_result
(self, obj: Any, elapsed: float)
anytool/grounding/core/tool/base.py:221
↓ 1 callers
Function
_wrap_script_with_conda
Wrap bash script with conda activation if needed.
anytool/grounding/backends/shell/transport/local_connector.py:61
↓ 1 callers
Method
activate_window
Activate window (macOS uses AppleScript) Args: window_name: Window name or application name strict:
anytool/local_server/platform_adapters/macos_adapter.py:46
↓ 1 callers
Method
add_agent_activity
Add agent activity
anytool/utils/ui.py:363
↓ 1 callers
Method
add_execution
Add execution record and update stats.
anytool/grounding/core/quality/types.py:144
↓ 1 callers
Method
add_grounding_operation
Add grounding operation
anytool/utils/ui.py:386
↓ 1 callers
Method
adjust_ranking
Adjust tool ranking using penalty-based approach. Args: tools_with_scores: List of (tool, semantic_score) tup
anytool/grounding/core/quality/manager.py:327
↓ 1 callers
Method
analyze_agents
(self)
anytool/recording/viewer.py:101
↓ 1 callers
Method
argbdata_to_pixdata
(self, data, len)
anytool/local_server/platform_adapters/pyxcursor.py:81
↓ 1 callers
Method
attach_grounding_client
Attach grounding client Args: grounding_client: GroundingClient instance
anytool/utils/ui_integration.py:50
↓ 1 callers
Method
attach_llm_client
Attach LLM client Args: llm_client: LLMClient instance
anytool/utils/ui_integration.py:40
↓ 1 callers
Method
build
(self, title: Optional[str] = None, lines: List[str] = None, footer
anytool/utils/display.py:164
↓ 1 callers
Function
build_llm_config
Build complete LLM configuration with auto-detection and environment variables. Auto-detects: - API key from environment variables (
anytool/grounding/backends/gui/config.py:9
↓ 1 callers
Method
call_tool
( self, session_name: str, tool_name: str, parameters: Dict[str, Any] | None =
anytool/grounding/core/provider.py:100
↓ 1 callers
Method
call_tool
Call an MCP tool with automatic reconnection handling and retry logic. Args: name: The name of the tool to call. argu
anytool/grounding/backends/mcp/transport/connectors/base.py:240
↓ 1 callers
Method
call_tool
Call an MCP tool.
anytool/grounding/backends/mcp/transport/connectors/http.py:592
↓ 1 callers
Method
capture_screenshot_with_cursor
Capture screenshot with cursor using macOS native screencapture command Args: output_path: Output file path
anytool/local_server/platform_adapters/macos_adapter.py:27
↓ 1 callers
Method
check_all
Check all features with functional testing Args: test_endpoints: Whether to test endpoints (False only checks fe
anytool/local_server/health_checker.py:404
↓ 1 callers
Method
check_changes
Check for tool changes (new/updated/unchanged). Returns dict: {tool_key: "new"|"updated"|"unchanged"}
anytool/grounding/core/quality/manager.py:355
↓ 1 callers
Method
check_platform_adapter_available
(self, use_cache: bool = True)
anytool/local_server/feature_checker.py:211
↓ 1 callers
Method
cleanup_temp_files
Clean up all temporary test files
anytool/local_server/health_checker.py:74
↓ 1 callers
Method
clear_cache
Clear embeddings from cache. Args: backend: If provided, only clear this backend. If None, clear all. server:
anytool/grounding/core/search_tools.py:465
↓ 1 callers
Method
close
Close HTTP session.
anytool/platform/screenshot.py:160
↓ 1 callers
Method
close
Close the HTTP session.
anytool/platform/system_info.py:150
↓ 1 callers
Method
close_all_sessions
Provider shutdown cleanup
anytool/grounding/core/provider.py:66
↓ 1 callers
Method
close_session
Close session
anytool/grounding/core/provider.py:54
↓ 1 callers
Method
close_session
Close a session. Args: server_name: The name of the server to close the session for. Raises: ValueError: If
anytool/grounding/backends/mcp/client.py:350
↓ 1 callers
Method
close_window
Close window or application (macOS uses AppleScript) Args: window_name: Window name or application name
anytool/local_server/platform_adapters/macos_adapter.py:111
↓ 1 callers
Method
compute_adaptive_quality_weight
Compute adaptive quality weight based on data confidence. Returns higher weight when we have more reliable quality data,
anytool/grounding/core/quality/manager.py:573
↓ 1 callers
Method
connect
(self)
anytool/grounding/core/session.py:55
↓ 1 callers
Method
connect
(self)
anytool/grounding/core/transport/connectors/aiohttp_connector.py:21
↓ 1 callers
Method
connect
Connect to GUI desktop environment
anytool/grounding/backends/gui/session.py:161
↓ 1 callers
Method
connect
(self)
anytool/grounding/backends/web/session.py:29
↓ 1 callers
Method
construct_messages
( self, context: Dict[str, Any] )
anytool/agents/grounding_agent.py:368
↓ 1 callers
Function
convert_mcp_tool_to_base_tool
Convert an MCP Tool to a BaseTool (RemoteTool) instance. This function extracts the tool schema from an MCP tool object and creates
anytool/grounding/backends/mcp/tool_converter.py:149
↓ 1 callers
Function
create_connector_from_config
Create a connector based on server configuration. Args: server_config: The server configuration section server_name: Name of
anytool/grounding/backends/mcp/config.py:29
↓ 1 callers
Method
create_session
Create and initialize Session, return "session_name" (external visible) name is auto generated when it's None: <backend>-<index>
anytool/grounding/core/grounding_client.py:219
↓ 1 callers
Method
create_session
(self, session_config: SessionConfig)
anytool/grounding/backends/shell/provider.py:50
↓ 1 callers
Method
create_session
Create a session for the specified server with retry logic. Args: server_name: The name of the server to create a session for.
anytool/grounding/backends/mcp/client.py:196
↓ 1 callers
Method
create_session
Create GUI session. Args: session_config: Session configuration Returns: GUISession
anytool/grounding/backends/gui/provider.py:56
↓ 1 callers
Method
create_session
Create Web session
anytool/grounding/backends/web/provider.py:29
↓ 1 callers
Function
create_ui
Create AnyTool UI instance Args: enable_live: Whether to enable live display updates compact: Use compact layout for sma
anytool/utils/ui.py:438
↓ 1 callers
Method
disconnect
Close the session/connection and reset state. Ensures proper cleanup of all resources including aiohttp sessions.
anytool/grounding/core/transport/connectors/base.py:54
↓ 1 callers
Method
disconnect
Close the session/connection and reset state.
anytool/grounding/backends/mcp/transport/connectors/http.py:113
↓ 1 callers
Method
disconnect
(self)
anytool/grounding/backends/web/session.py:51
↓ 1 callers
Method
ensure_dependencies
Ensure the dependencies of the MCP server are installed. This method checks if the dependencies are installed, and if not, asks the u
anytool/grounding/backends/mcp/installer.py:539
↓ 1 callers
Method
ensure_session
(self, backend: BackendType, server: str | None = None)
anytool/grounding/core/grounding_client.py:324
↓ 1 callers
Method
evaluate_description
Evaluate tool description quality using LLM.
anytool/grounding/core/quality/manager.py:151
↓ 1 callers
Method
evolve
Run self-evolution cycle on given tools. This method: 1. Detects tool changes 2. Re-evaluates descriptions w
anytool/grounding/core/quality/manager.py:634
↓ 1 callers
Method
evolve_quality
Run quality self-evolution cycle. This triggers: - Tool change detection - Description re-evaluation for upd
anytool/grounding/core/grounding_client.py:166
↓ 1 callers
Method
execute
Execute a task with AnyTool. Args: task: Task instruction context: Additional context wo
anytool/tool_layer.py:190
↓ 1 callers
Method
execute_action
Direct action execution (bypass LLM planning). Args: action_type: Action type from ACTION_SPACE para
anytool/grounding/backends/gui/tool.py:531
↓ 1 callers
Method
execute_action
Execute a desktop action (same logic as GUIConnector).
anytool/grounding/backends/gui/transport/local_connector.py:258
↓ 1 callers
Method
execute_action
Execute a desktop action. This is the main method for action space execution. Args: action_type: Action
anytool/grounding/backends/gui/transport/connector.py:255
↓ 1 callers
Method
execute_safe
(self, command: str, **kwargs)
anytool/grounding/core/security/sandbox.py:23
↓ 1 callers
Function
extract_errors
(trajectory: List[Dict[str, Any]])
anytool/recording/utils.py:268
↓ 1 callers
Method
final_summary
Build prompt for generating final summary across all iterations.
anytool/prompts/grounding_agent_prompts.py:149
← previous
next →
301–400 of 999, ranked by callers