Broken Tool Demo - The Problem
⚠️ This is a BROKEN version that demonstrates the problem!
Notice how the JavaScript code appears as plain text below the tool instead of executing properly.
tag breaks everything!
alert('${greeting} ${userName}!');
\`;
console.log(message);
}
// Call the function
sayHello();`;
// Display the code
document.getElementById('output').textContent = code;
document.getElementById('output').style.display = 'block';
}
// Auto-generate on page load
window.addEventListener('load', generateBrokenCode);
No comments:
Post a Comment