switch_to_student
Set the active session to a child's student account (parent accounts only) so later EduPage actions use that student's data. Revert by switching back to the parent account.
Instructions
Switch the session to a student account (parent accounts only). Writes: changes which account subsequent tools operate as.
Args:
student_id: person_id of the child (from get_my_students).
name: first/last/full name of the child, used when student_id is omitted.
subdomain: School to query (defaults to the active subdomain).
Returns: dict: {'switched_to_student': , 'user_id': ...}.
Notes:
- Revert with switch_to_parent. Prefer the stateless
get_student_timetable (name/student_id) over switching when you
only need a timetable.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| subdomain | No | ||
| student_id | No |