Execute code in multiple programming languages. Use when the user asks to run, test, or debug code in Python, JavaScript, shell, or other languages.
Execute code using the exec tool in the sandbox environment.
python3 -c "print('hello')"
# Or write to file and run:
python3 script.py
Install packages with: pip install package_name
echo "hello" && ls -la
# Install node if not available
apt-get update && apt-get install -y nodejs npm 2>/dev/null || apk add nodejs npm 2>/dev/null
node -e "console.log('hello')"
write_file to save then exec to runpython3 -c "...".py file first