Extract schedule events
extract_schedule_eventsExtracts dated events from pasted syllabus text, giving each dated line a title, type, date, and optional times while returning undated lines separately.
Instructions
Extract dated events from pasted syllabus text. Each line that names a date becomes one event, with a title, a type, a date and optional times. Inputs: text (the pasted syllabus or course schedule, one event per line), course (a course name or code to put on every event), year (the year to use when a date has no year) and term_start (the first day of the term, so a line such as Week 5: Midterm becomes an event). Titles are read from the words around the date, and each event is marked as an assignment, exam, quiz, lab, reading, class or other. Any line that has no date is returned in undated_lines instead of being dropped silently. The answer ends with a next step hint that points to build_ics when the events should become a calendar. When no line names a date, the count is 0 and the next step tells the student how to fix the pasted text. Example prompt: "Turn this syllabus into calendar events: Assignment 1 due Sep 15, Midterm exam October 20 at 10:00."
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": {
"text": "<text>"
},
"name": "extract_schedule_events"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The pasted syllabus or course schedule. Put one event on each line, with a date on the line. | |
| year | No | The year to use when a date has no year. Defaults to the current year. | |
| course | No | Course name or code to put on every event, such as BIO 101. | |
| term_start | No | First day of the term as YYYY-MM-DD. When set, a line like Week 5: Midterm with no date becomes an event on the first day of week 5, where week 1 starts on this date. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | Yes | The year used for dates that did not name one. | |
| count | Yes | How many events were found. | |
| events | Yes | Every dated event that was found, in date order. | |
| next_step | Yes | Suggested next tool call for turning the events into a calendar. | |
| undated_lines | Yes | Lines that had no date, kept in the order they appeared so they can be fixed. |