Change classes and homework
change_studyChange the user's timetable and homework in DayHeart. add_class adds a class once, every week or every other week until a date. add_homework adds homework on a new line of a class's homework (the same text is not added twice). set_homework replaces it with a short line (what and for when) and optional details; clear_homework removes it. close_subject marks a subject closed with its result; reopen_subject opens it again. add_material attaches a link to a class (class_id) or to the whole subject (subject): DayHeart keeps links, not files, so put the file on the user's cloud drive first and attach its link; remove_material removes one (material_id or url). In a shared group timetable the whole group sees classes, homework and materials; a closed subject is the user's own mark.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>"
},
"name": "change_study"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | HH:MM, 24-hour: end of a new class | |
| url | No | For add_material: https link to the file or page (for example a Google Drive file). In a shared place of study the whole group opens it, so the file must be viewable by anyone with the link; the answer says access "closed" if it is not. For remove_material: the link to remove | |
| date | No | YYYY-MM-DD: the (first) day of a new class, or the day of the class the homework is for | |
| kind | No | Kind of class: lecture, practice, lab or seminar | |
| link | No | Link to an online class | |
| room | No | Room or building, as the user writes it | |
| text | No | Homework: the text to add (up to 1000 characters), or for set_homework the short line, what and for when (up to 300) | |
| grade | No | For close_subject with a grade: the grade as the user says it, up to 12 characters | |
| place | No | Place of study (group) name; needed only when the user has several | |
| start | No | HH:MM, 24-hour: start of a new class | |
| title | No | For add_material: name to show, up to 120 characters, e.g. "Lecture 3.docx" | |
| until | No | YYYY-MM-DD: last day for weekly or biweekly; at most 90 classes | |
| action | Yes | What to do | |
| folder | No | For add_material: folder inside the subject's materials, e.g. "Tests" (empty: no folder); for a link that is already there, moves it | |
| repeat | No | once (default), weekly or biweekly, for a new class | |
| result | No | For close_subject: passed as a credit, with a grade, or without a result | |
| details | No | For set_homework: everything else about the homework, up to 4000 characters | |
| subject | No | Subject as in the timetable, e.g. "Anatomy (Pr)": the class to add, the class for homework when there is no class_id, the subject to close or reopen, or the subject a material belongs to | |
| teacher | No | Teacher's name | |
| class_id | No | id of the class, for homework or a material of this class | |
| material_id | No | For remove_material: id of the material, as listed with the class or subject |