def list_available_tools(
        self, include_built_in=True, include_user=True
    ) -> list[str]:
        """
        List all available tool names.
        Optionally filter by built-in or user-defined tools.
        """
        tools: set[str] = set()

        if include_built_in:
            tools.update(self._built_in_tools.keys())

        if include_user:
            tools.update(self._user_tools.keys())

        return sorted(list(tools))

        List all available tool names.
        Optionally filter by built-in or user-defined tools.
        
py/core/base/agent/tools/registry.py