            document.getElementById('confirm-add-tool').addEventListener('click', addTool);
            
            // Discover tools button
            document.getElementById('discover-tools-btn').addEventListener('click', () => {
                document.getElementById('discover-tools-modal').classList.add('visible');
            });
            
            // Discover tools modal
            document.querySelectorAll('#discover-tools-modal .close-button, #cancel-discover').forEach(button => {
        