            });
                })
                .catch(error => {
                    console.error('Error loading tool details:', error);
                    showNotification('Error loading tool details', true);
                });
        }
        
        // Delete tool
        function deleteTool(toolId) {
            if (!confirm('Are you sure you want to delete this tool?')) {
                return;
            }
            
            fetch(`/api/tools/${toolId}`, {
                method: 'DE