code_action
ChatGPTINTERNAL: Only the client widget calls this. GPT must never call. Batch code improvements: explain, add_types, add_tests, simplify, security_check, optimize.
create_python_project
ChatGPTGenerate complete Python project structure with AI. Use when user wants to: create a project, setup FastAPI/Flask/Django, build a bot/scraper/API. Opens project generator with full structure.
debug_python_code
ChatGPTDebug and fix Python code errors using AI. Use when user has: Python error/exception, code not working, traceback issues, runtime problems. Opens debugger with AI-powered fixes.
execute_python_code
ChatGPTExecute Python code in browser with Pyodide. Use when user wants to: run/execute Python code, test a script, see output/results. Opens interactive Python executor with live output.
get_python_project
ChatGPTINTERNAL: Only the client widget calls this. GPT must never call. Get a project by id.
get_python_projects
ChatGPTINTERNAL: Only the client widget calls this. GPT must never call. List saved projects.
get_user_info
ChatGPTINTERNAL: Only the client widget calls this. GPT must never call. User info for the widget.
refactor_python_code
ChatGPTRefactor and improve Python code using AI. Use when user wants to: improve/optimize code, add type hints, follow PEP8, make code cleaner, add documentation. Opens refactor tool with AI suggestions.
review_python_code
ChatGPTReview Python code with AI for best practices and issues. Use when user wants to: review/check code, find bugs/security issues, get feedback, improve quality. Opens code reviewer with AI analysis.
save_python_project
ChatGPTINTERNAL: Only the client widget calls this. GPT must never call. Save a Python project/snippet.
write_python_code
ChatGPTMAIN: GPT calls this. Generate Python code using AI. Use when user asks to: write/create/generate Python code, make a script/function/class, build an API/bot/scraper. Opens interactive code editor with AI-generated code.