'click', () => {
                        dialog.remove();
                        deleteTool(toolId);
                    });
                })
                .catch(error => {
                    console.error('Error loading tool details:', error);
                    showNotification('Error loading tool details', true);
                });
        }
        
        // Test tool
        function testTool(toolId) {
            const tool = tools.find(t => t.id === toolId);
            if (!tool) return;
