Quick Start
The fastest way to create a widget:server/tools/mywidget_tool.py- Python backend logicwidgets/mywidget/index.jsx- React frontend component
Widget Architecture
Core Concepts
1. Data Flow
2. File Structure
3. React Hooks
useWidgetProps()- Access tool output datauseWidgetState()- Manage persistent stateuseOpenAiGlobal()- Access ChatGPT environmentuseDisplayMode()/useMaxHeight()- Layout convenience hooks
Next Steps
Ready to start building?Widget Basics
Learn the fundamentals
React Hooks
Master the hook system
Advanced Patterns
Complex interactions

