aeroedu_block_add_lab
Insert hands-on lab activities (circuit, graph, Python, Arduino, or custom iframe) into lessons so students practice directly in the browser without software installation.
Instructions
Thêm lab challenge thực hành vào bài học. Các loại lab AeroEdu hỗ trợ: circuit (mạch điện Wokwi), graph (đồ thị toán), python (thực thi code), arduino (mô phỏng board), custom (iframe embed). HS tương tác trực tiếp trong trình duyệt không cần cài đặt.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lesson_id | Yes | lessonId từ aeroedu_lesson_add | |
| lab_type | Yes | Loại lab: circuit=mạch điện, graph=đồ thị, python=code, arduino=board, custom=iframe | |
| title | Yes | Tên bài lab | |
| description | No | Mô tả mục tiêu lab | |
| embed_url | No | URL embed cho lab_type='custom' (Wokwi, GeoGebra, PhET, v.v.) | |
| config | No | Cấu hình lab JSON (circuit diagram, graph params, starter code...) | |
| position | No | Vị trí trong bài học |