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
find_dangerous_tokens
Find and return all dangerous tokens in the command. Returns empty list if no dangerous tokens found.
anytool/grounding/core/types.py:181
↓ 1 callers
Function
format_agent_actions
Format agent actions for display.
anytool/recording/action_recorder.py:223
↓ 1 callers
Method
from_dict
Create SecurityPolicy from configuration dict. Supports two formats for blocked_commands: 1. List format (applies to
anytool/grounding/core/types.py:98
↓ 1 callers
Method
from_dict
Deserialize from dict.
anytool/grounding/core/quality/types.py:191
↓ 1 callers
Method
generate_summary
Generate a comprehensive summary of the recording session.
anytool/recording/manager.py:888
↓ 1 callers
Function
generate_summary_report
(recording_dir: str, output_file: Optional[str] = None)
anytool/recording/utils.py:275
↓ 1 callers
Method
get_accessibility_tree
Get accessibility tree locally.
anytool/grounding/backends/gui/transport/local_connector.py:319
↓ 1 callers
Method
get_accessibility_tree
Get accessibility tree from desktop environment. Args: max_depth: Maximum depth of accessibility tree traversal
anytool/grounding/backends/gui/transport/connector.py:325
↓ 1 callers
Method
get_accessibility_tree
Get macOS accessibility tree Args: max_depth: Maximum depth Returns: Accessibil
anytool/local_server/platform_adapters/macos_adapter.py:154
↓ 1 callers
Function
get_agent_config
Get the configuration of the specified agent
anytool/config/loader.py:151
↓ 1 callers
Method
get_all_sanitized_tools
Get all sanitized cached tools, grouped by server.
anytool/grounding/backends/mcp/tool_cache.py:226
↓ 1 callers
Method
get_bytes
(self, path: str, **kw)
anytool/grounding/core/transport/connectors/aiohttp_connector.py:63
↓ 1 callers
Method
get_cache_stats
Get statistics about the embedding cache. Returns: Dict with structure: { "total_embeddings": int,
anytool/grounding/core/search_tools.py:427
↓ 1 callers
Method
get_clickable_elements
(self, tree: Dict[str, Any])
anytool/local_server/utils/accessibility.py:115
↓ 1 callers
Method
get_cursor_position
Get current mouse cursor position. Useful for GUI debugging and relative positioning. Returns: (x, y) tu
anytool/grounding/backends/gui/transport/connector.py:349
↓ 1 callers
Method
get_cursor_position
Get cursor position Returns: (x, y)
anytool/local_server/utils/screenshot.py:97
↓ 1 callers
Function
get_global_installer
Get the global installer manager instance.
anytool/grounding/backends/mcp/installer.py:687
↓ 1 callers
Method
get_host
Get the host URL for a specific port. Args: port: The port number to get the host for Returns:
anytool/grounding/core/security/e2b_sandbox.py:187
↓ 1 callers
Method
get_last_search_debug_info
Get debug info from the last search operation. Returns: Dict containing search debug info, or None if no search has been
anytool/grounding/core/search_tools.py:1103
↓ 1 callers
Function
get_model_name
Extract the model name from LangChain LLM using BaseChatModel standards.
anytool/utils/telemetry/utils.py:27
↓ 1 callers
Function
get_model_provider
Extract the model provider from LangChain LLM using BaseChatModel standards.
anytool/utils/telemetry/utils.py:21
↓ 1 callers
Method
get_parameters_schema
Auto-generate JSON-schema from _run() or _arun() signature. Returns empty dict for tools with no parameters. Priority: prefer
anytool/grounding/core/tool/base.py:75
↓ 1 callers
Method
get_penalty
Get penalty factor for a tool (0.2-1.0).
anytool/grounding/core/quality/manager.py:350
↓ 1 callers
Function
get_platform_adapter
()
anytool/local_server/platform_adapters/__init__.py:31
↓ 1 callers
Method
get_prompt
Get a prompt by name.
anytool/grounding/backends/mcp/transport/connectors/base.py:344
↓ 1 callers
Method
get_prompt
Get a prompt by name.
anytool/grounding/backends/mcp/transport/connectors/http.py:668
↓ 1 callers
Function
get_quality_manager
Get the global quality manager instance.
anytool/grounding/core/quality/__init__.py:9
↓ 1 callers
Method
get_screen_size
Get screen size. Returns: Dict with 'width' and 'height', or None on failure
anytool/platform/system_info.py:90
↓ 1 callers
Method
get_screenshot
Capture screenshot locally using ScreenshotHelper.
anytool/grounding/backends/gui/transport/local_connector.py:206
↓ 1 callers
Method
get_screenshot
Get screenshot from desktop environment. Returns: Screenshot image bytes (PNG/JPEG), or None on failure
anytool/grounding/backends/gui/transport/connector.py:204
↓ 1 callers
Method
get_server_names
Get the list of configured server names. Returns: List of server names.
anytool/grounding/backends/mcp/client.py:180
↓ 1 callers
Method
get_simple_features_dict
Get simple feature dict (for banner display)
anytool/local_server/health_checker.py:584
↓ 1 callers
Method
get_summary
Get summary
anytool/local_server/health_checker.py:568
↓ 1 callers
Method
get_system_info
Get macOS system information Returns: System information dictionary
anytool/local_server/platform_adapters/macos_adapter.py:357
↓ 1 callers
Function
get_system_prompt
Get system prompt based on platform. Args: platform: Platform type (Ubuntu, Windows, macOS, or Darwin) Returns:
anytool/grounding/backends/gui/anthropic_utils.py:46
↓ 1 callers
Method
get_terminal_output
Get terminal output (macOS Terminal.app or iTerm2) Returns: Terminal output content
anytool/local_server/platform_adapters/macos_adapter.py:651
↓ 1 callers
Method
get_tools_with_auto_search
Intelligent tool retrieval: automatically decides whether to return all tools or trigger search. Logic: - If tool_co
anytool/grounding/core/grounding_client.py:625
↓ 1 callers
Method
get_top_tools
Get top N tools by quality score. Args: n: Number of tools to return backend: Filter by backend type
anytool/grounding/core/quality/manager.py:429
↓ 1 callers
Method
get_visible_elements
(self, tree: Dict[str, Any])
anytool/local_server/utils/accessibility.py:98
↓ 1 callers
Method
has_sanitized_cache
Check if sanitized cache exists and has data.
anytool/grounding/backends/mcp/tool_cache.py:231
↓ 1 callers
Method
initialize
(self)
anytool/grounding/backends/shell/session.py:35
↓ 1 callers
Method
initialize
Initialize the MCP provider. If config["eager_sessions"] is True, creates sessions for all configured servers. Otherwise, ses
anytool/grounding/backends/mcp/provider.py:83
↓ 1 callers
Method
initialize
Initialize the MCP session and discover available tools. Returns: The session information returned by the MCP implementation.
anytool/grounding/backends/mcp/session.py:50
↓ 1 callers
Method
initialize_all_providers
(self)
anytool/grounding/core/grounding_client.py:215
↓ 1 callers
Function
inject_prompt_caching
Set cache breakpoints for the 3 most recent turns. One cache breakpoint is left for tools/system prompt, to be shared across sessions.
anytool/grounding/backends/gui/anthropic_utils.py:106
↓ 1 callers
Function
interactive_mode
(anytool: AnyTool, ui_manager: UIManager)
anytool/__main__.py:73
↓ 1 callers
Method
invoke
Dispatch by name — same routing as ShellConnector via AioHttpConnector.
anytool/grounding/backends/shell/transport/local_connector.py:384
↓ 1 callers
Method
invoke_tool
Universal tool invocation method. Supports multiple calling patterns: 1. Using BaseTool instance with bound runtime
anytool/grounding/core/grounding_client.py:738
↓ 1 callers
Method
is_available
(self)
anytool/local_server/utils/accessibility.py:44
↓ 1 callers
Method
iteration_feedback
Build feedback message to pass iteration summary to next iteration.
anytool/prompts/grounding_agent_prompts.py:231
↓ 1 callers
Method
list_all_backend_tools
List static tools for every registered backend.
anytool/grounding/core/grounding_client.py:531
↓ 1 callers
Method
list_prompts
List all available prompts.
anytool/grounding/backends/mcp/transport/connectors/http.py:654
↓ 1 callers
Method
list_resources
List all available resources from the MCP implementation.
anytool/grounding/backends/mcp/transport/connectors/base.py:309
↓ 1 callers
Method
list_session_tools
( self, session_name: str, use_cache: bool = False )
anytool/grounding/core/grounding_client.py:521
↓ 1 callers
Method
list_sessions
(self)
anytool/tool_layer.py:381
↓ 1 callers
Method
list_tools
List tools from MCP sessions. Args: session_name: If provided, only list tools from that session.
anytool/grounding/backends/mcp/provider.py:200
↓ 1 callers
Method
list_tools
List all available tools from the MCP implementation.
anytool/grounding/backends/mcp/transport/connectors/base.py:295
↓ 1 callers
Method
list_tools
List all available tools from the MCP implementation.
anytool/grounding/backends/mcp/transport/connectors/websocket.py:207
↓ 1 callers
Method
list_windows
List all windows Returns: Window list
anytool/local_server/platform_adapters/macos_adapter.py:593
↓ 1 callers
Function
load_agents_config
()
anytool/config/loader.py:146
↓ 1 callers
Method
load_all
Load all quality records and global execution count from disk. Returns: Tuple of (records_dict, global_execution_count)
anytool/grounding/core/quality/store.py:43
↓ 1 callers
Function
load_metadata
(trajectory_dir: str)
anytool/recording/utils.py:33
↓ 1 callers
Function
main
()
anytool/__main__.py:409
↓ 1 callers
Function
main
()
anytool/local_server/main.py:1111
↓ 1 callers
Function
print_banner
Print startup banner with server information
anytool/local_server/main.py:1047
↓ 1 callers
Method
print_configuration
(config: AnyToolConfig)
anytool/utils/cli_display.py:27
↓ 1 callers
Method
print_help
()
anytool/utils/cli_display.py:198
↓ 1 callers
Method
print_interactive_header
()
anytool/utils/cli_display.py:122
↓ 1 callers
Method
print_result_summary
(result: dict)
anytool/utils/cli_display.py:70
↓ 1 callers
Method
print_results
Print check results
anytool/local_server/health_checker.py:460
↓ 1 callers
Function
print_section
(title: str, content: List[str], color: str = 'c', inden
anytool/utils/display.py:223
↓ 1 callers
Method
print_summary
(self, result: dict)
anytool/__main__.py:46
↓ 1 callers
Method
print_system_ready
()
anytool/utils/cli_display.py:160
↓ 1 callers
Method
process
(self, context: Dict[str, Any])
anytool/agents/base.py:82
↓ 1 callers
Method
read_resource
Read a resource by URI.
anytool/grounding/backends/mcp/transport/connectors/base.py:322
↓ 1 callers
Method
read_resource
Read a resource by URI.
anytool/grounding/backends/mcp/transport/connectors/http.py:645
↓ 1 callers
Method
record_action
Record an agent action. Args: agent_name: Name of the agent performing the action action_type: Type
anytool/recording/action_recorder.py:42
↓ 1 callers
Method
record_agent_action
Record an agent's action and decision-making process. Args: agent_name: Name of the agent performing the action
anytool/recording/manager.py:838
↓ 1 callers
Method
record_execution
Record tool execution result and increment global counter.
anytool/grounding/core/quality/manager.py:116
↓ 1 callers
Method
record_iteration_context
Record a single iteration's LLM conversation to conversations.jsonl (real-time). Args: iteration: Iteration numb
anytool/recording/manager.py:142
↓ 1 callers
Method
record_retrieved_tools
Record the tools retrieved for a task Args: task_instruction: The task instruction used for retrieval
anytool/recording/manager.py:88
↓ 1 callers
Function
refresh_mcp_cache
Refresh MCP tool cache by starting servers one by one and saving tool metadata.
anytool/__main__.py:184
↓ 1 callers
Method
register
(cls, name: str, agent_cls: Type[BaseAgent])
anytool/agents/base.py:175
↓ 1 callers
Method
register_to_llm
(self, llm_client)
anytool/recording/manager.py:483
↓ 1 callers
Method
request
(self, method: str, path: str, **kw)
anytool/grounding/core/transport/connectors/aiohttp_connector.py:100
↓ 1 callers
Function
response_to_params
Convert Anthropic response to parameter list. Handles both text blocks, tool use blocks, and thinking blocks. Args: response
anytool/grounding/backends/gui/anthropic_utils.py:188
↓ 1 callers
Method
run_bash_script
Execute a Bash script locally. Return format matches the server's ``/run_bash_script`` endpoint.
anytool/grounding/backends/shell/transport/local_connector.py:321
↓ 1 callers
Function
run_health_check_async
Asynchronous running health check
anytool/local_server/main.py:1071
↓ 1 callers
Function
run_main
Run main function
anytool/__main__.py:462
↓ 1 callers
Method
run_python_script
Execute a Python script locally. Return format matches the server's ``/run_python`` endpoint.
anytool/grounding/backends/shell/transport/local_connector.py:248
↓ 1 callers
Method
run_python_script
Execute Python script on remote server Args: code: Python code string timeout: Execution timeout in
anytool/grounding/backends/shell/transport/connector.py:96
↓ 1 callers
Method
saveImage
(self, imgarray, text)
anytool/local_server/platform_adapters/pyxcursor.py:137
↓ 1 callers
Method
save_init_screenshot
Save initial screenshot to screenshots dir and update metadata.
anytool/recording/recorder.py:168
↓ 1 callers
Function
save_json_file
(data: dict[str, Any], filepath: str | Path, indent: int = 2)
anytool/config/utils.py:20
↓ 1 callers
Method
save_sanitized
Save sanitized tool metadata to disk. Args: servers: Dict mapping server_name -> list of sanitized tool metadata
anytool/grounding/backends/mcp/tool_cache.py:202
↓ 1 callers
Method
save_server
Save/update a single server's tools to cache (incremental append). Args: server_name: Name of the MCP server
anytool/grounding/backends/mcp/tool_cache.py:97
↓ 1 callers
Method
search_tools
Search tools from backend(s) or session. Args: task_description: Task description for searching relevant tools
anytool/grounding/core/grounding_client.py:542
↓ 1 callers
Function
set_quality_manager
Set the global quality manager instance.
anytool/grounding/core/quality/__init__.py:14
↓ 1 callers
Method
set_server_order
Set expected server order (from config). Used when saving to disk.
anytool/grounding/backends/mcp/tool_cache.py:30
↓ 1 callers
Method
set_wallpaper
Set desktop wallpaper Args: image_path: Image path Returns: Result dictionary
anytool/local_server/platform_adapters/macos_adapter.py:324
← previous
next →
401–500 of 999, ranked by callers