MCPcopy Create free account

hub / github.com/HKUDS/AnyTool / functions

Functions999 in github.com/HKUDS/AnyTool

↓ 634 callersMethodget
(self, backend: BackendType)
anytool/grounding/core/provider.py:142
↓ 266 callersMethodinfo
(self)
anytool/grounding/core/session.py:110
↓ 108 callersFunctioncolorize
(text: str, color: str = '', bold: bool = False)
anytool/utils/display.py:66
↓ 71 callersMethodget_logger
Return a logger with *name* (defaults to ``anytool``). The first call triggers :meth:`configure` automatically.
anytool/utils/logging.py:124
↓ 52 callersMethodtext_line
(self, text: str, align: str = 'left', indent: int = 2, text_color: str = '')
anytool/utils/display.py:134
↓ 44 callersFunctionget_config_value
(config: Any, key: str, default=None)
anytool/config/utils.py:6
↓ 36 callersMethodrun
(self, **kwargs)
anytool/grounding/core/tool/base.py:127
↓ 34 callersMethodwrite
Write to stderr, filtering out harmless error messages. Args: s: The string to write Returns:
anytool/grounding/backends/mcp/transport/task_managers/stdio.py:45
↓ 18 callersMethodbottom_line
(self, indent: int = 2)
anytool/utils/display.py:110
↓ 17 callersMethodload
Load cache from disk. Returns empty dict if not exists.
anytool/grounding/backends/mcp/tool_cache.py:54
↓ 16 callersMethodseparator_line
(self, indent: int = 2)
anytool/utils/display.py:119
↓ 13 callersFunctionprint_separator
(width: int = 68, color: str = 'bl', indent: int = 2)
anytool/utils/display.py:233
↓ 12 callersMethod_send_jsonrpc_request
Send a JSON-RPC request and return the result. Args: method: The JSON-RPC method name (e.g., "tools/list", "tools/call")
anytool/grounding/backends/mcp/transport/connectors/http.py:374
↓ 11 callersMethodempty_line
(self, indent: int = 2)
anytool/utils/display.py:125
↓ 10 callersMethod__aexit__
Exit the async context manager. Args: exc_type: The exception type, if an exception was raised. exc_val: The exceptio
anytool/grounding/core/session.py:45
↓ 10 callersFunctionget_config
Get global configuration instance. Usage: - Get configuration in Provider: get_config().get_backend_config('shell') - Ge
anytool/config/loader.py:118
↓ 10 callersMethodrecord_step
Record one step operation Args: backend: backend type (gui/shell/mcp/web/system) tool: tool name (na
anytool/recording/recorder.py:72
↓ 9 callersMethodsave
Save tool metadata to disk (overwrites existing cache). Args: servers: Dict mapping server_name -> list of tool
anytool/grounding/backends/mcp/tool_cache.py:73
↓ 8 callersMethod_ensure_connected
Ensure the connector is connected.
anytool/grounding/backends/mcp/transport/connectors/http.py:570
↓ 8 callersMethod_request
( self, method: str, path: str, *, json: Any | BaseModel | None = None
anytool/grounding/core/transport/connectors/aiohttp_connector.py:31
↓ 8 callersMethodclear
Clear all cached data.
anytool/grounding/core/quality/store.py:107
↓ 8 callersMethodclose
Close the HTTP session.
anytool/platform/recording.py:123
↓ 8 callersMethodcomplete
Single-round LLM call with optional tool execution. Args: messages: conversation history (List[Dict] for standar
anytool/llm/client.py:440
↓ 8 callersMethodflush
Flush any queued telemetry events
anytool/utils/telemetry/telemetry.py:289
↓ 8 callersMethodget_trajectory_dir
Get trajectory directory path
anytool/recording/recorder.py:270
↓ 7 callersMethod_ensure_connected
Ensure the connector is connected, reconnecting if necessary. Raises: RuntimeError: If connection cannot be established and auto_
anytool/grounding/backends/mcp/transport/connectors/base.py:218
↓ 7 callersMethodadd_log
Add log message
anytool/utils/ui.py:397
↓ 7 callersMethodlist_tools
List tools from backend(s) or session. 1. session_name is provided → return tools from that session 2. backend is li
anytool/grounding/core/grounding_client.py:449
↓ 6 callersMethod_parse_arguments
Safely parse tool_call.function.arguments which may be JSON string. Handles: 1. Proper JSON strings with true/false/null 2. P
anytool/recording/manager.py:300
↓ 6 callersMethod_send_request
Send a request and wait for a response.
anytool/grounding/backends/mcp/transport/connectors/websocket.py:169
↓ 6 callersMethodadd_metadata
(self, key: str, value: Any)
anytool/recording/manager.py:759
↓ 6 callersMethodbind_runtime_info
Bind runtime information to the tool instance. Allow the tool to be invoked directly without specifying backend/session/server.
anytool/grounding/core/tool/base.py:164
↓ 6 callersMethodclear
(cls)
anytool/agents/base.py:192
↓ 6 callersMethodflush
Flush any remaining buffered content and the underlying stream.
anytool/grounding/backends/mcp/transport/task_managers/stdio.py:206
↓ 6 callersMethodstop
Set self._active to False
anytool/grounding/core/security/sandbox.py:18
↓ 6 callersMethodtop_line
(self, indent: int = 2)
anytool/utils/display.py:101
↓ 5 callersMethod__aenter__
(self)
anytool/grounding/core/session.py:38
↓ 5 callersMethod_compute_description_hash
Compute hash of tool description for change detection.
anytool/grounding/core/quality/manager.py:90
↓ 5 callersMethod_get_mcp_servers
Internal helper to get mcpServers configuration. Tries both 'mcpServers' and 'servers' keys for compatibility. Retur
anytool/grounding/backends/mcp/client.py:80
↓ 5 callersFunctionget_conda_activation_prefix
Generate platform-specific conda activation command prefix Args: conda_env: Conda environment name (e.g., 'myenv') Retu
anytool/local_server/main.py:51
↓ 5 callersMethodlist_providers
(self)
anytool/grounding/core/grounding_client.py:198
↓ 5 callersMethodlist_servers
Return all configured MCP server names from MCPClient config. Returns: List of server names
anytool/grounding/backends/mcp/provider.py:111
↓ 5 callersFunctionload_agent_actions
Load agent actions from a trajectory directory.
anytool/recording/action_recorder.py:168
↓ 5 callersMethodstart
Set self._active to True
anytool/grounding/core/security/sandbox.py:13
↓ 4 callersMethod_ensure_dir
Ensure cache directory exists.
anytool/grounding/backends/mcp/tool_cache.py:50
↓ 4 callersMethod_extract_npm_package
Extract package name from npx arguments. Args: args: npx arguments list, e.g. ["-y", "mcp-excalidraw-server"] or ["bazi-m
anytool/grounding/backends/mcp/installer.py:163
↓ 4 callersMethod_fetch_tools
Fetch tools from provider. Args: backend: Backend type session_name: - None: fetch
anytool/grounding/core/grounding_client.py:343
↓ 4 callersMethod_record_tool_scores
Record tool scores from ranking results.
anytool/grounding/core/search_tools.py:823
↓ 4 callersMethod_retry_invoke
( self, operation_name: str, operation_func, *args, **kwargs, )
anytool/grounding/backends/gui/transport/local_connector.py:87
↓ 4 callersMethod_retry_invoke
Execute operation with retry logic. Args: operation_name: Name of operation for logging operation_fu
anytool/grounding/backends/gui/transport/connector.py:47
↓ 4 callersMethod_save_metadata
Save metadata to metadata.json
anytool/recording/recorder.py:189
↓ 4 callersMethodarun
(self, **kwargs)
anytool/grounding/core/tool/base.py:140
↓ 4 callersMethodcapture
Capture a telemetry event
anytool/utils/telemetry/telemetry.py:161
↓ 4 callersMethodcheck_all_features
(self, use_cache: bool = True)
anytool/local_server/feature_checker.py:220
↓ 4 callersMethodcheck_command_allowed
(self, backend_type: BackendType, command: str)
anytool/grounding/core/security/policies.py:76
↓ 4 callersMethodcheck_screenshot_available
(self, use_cache: bool = True)
anytool/local_server/feature_checker.py:19
↓ 4 callersMethodcreate_session
Create a new MCP session for a specific server. Args: session_config: Must contain 'server' in connection_params
anytool/grounding/backends/mcp/provider.py:119
↓ 4 callersMethodend_recording
End screen recording and optionally save to file.
anytool/platform/recording.py:89
↓ 4 callersMethodformat
(self, record: logging.LogRecord)
anytool/utils/logging.py:69
↓ 4 callersMethodget_record
Get or create quality record for a tool.
anytool/grounding/core/quality/manager.py:95
↓ 4 callersFunctionget_tool_cache
Get global tool cache instance.
anytool/grounding/backends/mcp/tool_cache.py:248
↓ 4 callersMethodget_tool_key
Generate unique key for a tool.
anytool/grounding/core/quality/manager.py:77
↓ 4 callersMethodinitialize
Initialize provider, call `create_session` to create all sessions if not exist Subclasses should set `self.is_initialized = True` afte
anytool/grounding/core/provider.py:42
↓ 4 callersMethodinvoke
Invoke this tool using bound runtime information. Requires runtime info to be bound via bind_runtime_info(). If no runtime in
anytool/grounding/core/tool/base.py:199
↓ 4 callersMethodlist
(self)
anytool/grounding/core/provider.py:147
↓ 4 callersFunctionload_recording_session
Load complete recording session including trajectory, metadata, plans, and snapshots. Args: recording_dir: Path to recording dir
anytool/recording/utils.py:176
↓ 4 callersMethodrank
( self, query: str, tools: List[BaseTool], *, top_k: int = 50,
anytool/grounding/core/search_tools.py:194
↓ 4 callersMethodstop
Stop recording screen and save to local
anytool/recording/video.py:58
↓ 3 callersMethod__init__
( self, connector: Union[ShellConnector, LocalShellConnector], *, session_i
anytool/grounding/backends/shell/session.py:18
↓ 3 callersMethod_extract_output
(self, result)
anytool/grounding/backends/shell/session.py:413
↓ 3 callersMethod_extract_python_package
Extract package name from uvx arguments. Args: args: uvx arguments list, e.g. ["--from", "office-powerpoint-mcp-server",
anytool/grounding/backends/mcp/installer.py:197
↓ 3 callersMethod_extract_uv_package
Extract package name from uv run arguments. Args: args: uv arguments list, e.g. ["run", "--with", "biomcp-python", "biomc
anytool/grounding/backends/mcp/installer.py:234
↓ 3 callersMethod_get_session
Get or create aiohttp session.
anytool/platform/system_info.py:39
↓ 3 callersMethod_is_harmless_error
Check if the collected traceback is a harmless error.
anytool/grounding/backends/mcp/transport/task_managers/stdio.py:181
↓ 3 callersMethod_keyword_search
( self, query: str, tools: Iterable[BaseTool], top_k: int )
anytool/grounding/core/search_tools.py:215
↓ 3 callersFunction_load_json_file
Load single JSON configuration file. This function wraps the generic load_json_file and adds global configuration specific error handling and
anytool/config/loader.py:36
↓ 3 callersMethod_parse_tools_from_json
Parse tool data into Tool objects.
anytool/grounding/backends/mcp/transport/connectors/http.py:455
↓ 3 callersMethod_rebuild_text_index
Rebuild text-to-key mapping for quick lookup.
anytool/grounding/core/search_tools.py:151
↓ 3 callersMethod_run_subprocess
Run a command via asyncio subprocess and return a result dict matching the format returned by the local_server endpoints.
anytool/grounding/backends/shell/transport/local_connector.py:136
↓ 3 callersMethod_semantic_search
( self, query: str, tools: Iterable[BaseTool], top_k: int )
anytool/grounding/core/search_tools.py:345
↓ 3 callersMethod_truncate_data
(self, data: Any, max_length: int)
anytool/recording/action_recorder.py:124
↓ 3 callersMethodcapture
Capture screenshot via HTTP API. Calls: GET {base_url}/screenshot Returns: PNG image bytes, or
anytool/platform/screenshot.py:81
↓ 3 callersMethodcheck
return True if allowed, False if denied. Command check uses token-level matching to prevent simple space/escape bypasses.
anytool/grounding/core/types.py:155
↓ 3 callersMethodcheck_file_ops_available
(self, use_cache: bool = True)
anytool/local_server/feature_checker.py:109
↓ 3 callersMethodcheck_shell_available
(self, use_cache: bool = True)
anytool/local_server/feature_checker.py:43
↓ 3 callersMethodcleanup
Close all sessions and release resources. Automatically called when using context manager.
anytool/tool_layer.py:340
↓ 3 callersMethodclose_session
Close an MCP session by session name. Args: session_name: Session name in format 'mcp-<server_name>'
anytool/grounding/backends/mcp/provider.py:164
↓ 3 callersMethodconfigure
Configure the logging system. Usually called automatically on first use; pass ``force=True`` to reconfigure explicitly. Args
anytool/utils/logging.py:146
↓ 3 callersMethoddisconnect
Disconnect from GUI desktop environment
anytool/grounding/backends/gui/session.py:174
↓ 3 callersMethodensure_initialized
Internal helper. Guarantee that `initialize()` has been executed
anytool/grounding/core/provider.py:34
↓ 3 callersMethodexecute_python_command
Execute a Python command on desktop environment. Used for pyautogui commands. Args: command: Python comm
anytool/grounding/backends/gui/transport/connector.py:229
↓ 3 callersMethodflatten_tree
(self, tree: Dict[str, Any])
anytool/local_server/utils/accessibility.py:76
↓ 3 callersMethodget_backend_config
Get configuration for specified backend
anytool/config/grounding.py:258
↓ 3 callersFunctionget_client_base_url
Get base URL for connecting to local server. Priority: 1. Environment variable LOCAL_SERVER_URL 2. Read from local_server/config
anytool/platform/config.py:65
↓ 3 callersFunctionget_local_server_config
Read local server configuration. Priority: 1. Environment variable LOCAL_SERVER_URL (parsed into host/port) 2. Config file local
anytool/platform/config.py:8
↓ 3 callersFunctionget_package_version
Get the current mcp-use package version.
anytool/utils/telemetry/utils.py:13
↓ 3 callersMethodget_screenshot
Get current desktop screenshot.
anytool/grounding/backends/gui/tool.py:561
↓ 3 callersMethodget_system_info
Get comprehensive system information. Returns information including: - system: OS name (Linux, Darwin, Windows)
anytool/platform/system_info.py:47
↓ 3 callersMethodinitialize
Negotiate with the backend, discover tools, etc. Return session information (can be an empty dict). `self.tools` nee
anytool/grounding/core/session.py:73
↓ 3 callersMethodis_initialized
(self)
anytool/tool_layer.py:367
next →1–100 of 999, ranked by callers