export_holidays_ics
Export a canton's holidays for a year as an iCalendar (.ics) document. Filter by public, school, or specific school type for direct calendar import.
Instructions
Export a canton's holidays for a year as an iCalendar (.ics) document.
<use_case>Produce a ready-to-import .ics calendar of a canton's holidays for a year, filtered by public/school and Schulart.</use_case>
Returns a ready-to-save text/calendar document with one all-day event per
holiday. include selects all (default), public or school; combine
with school_type (VS/MS/BS/EO) to narrow school holidays.
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": {
"canton": "<canton>",
"year": "<year>"
},
"name": "export_holidays_ics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | Yes | ||
| canton | Yes | ISO code, e.g. CH-ZH | |
| include | No | all | |
| language | No | DE | |
| school_type | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ics | Yes | The full iCalendar (text/calendar) document. | |
| note | No | Human-readable caveat, set when provenance is 'degraded'. | |
| year | Yes | ||
| canton | Yes | ||
| source | Yes | Attribution string of the upstream source. | |
| filename | Yes | Suggested file name, e.g. holidays-CH-ZH-2026.ics. | |
| provenance | Yes | live_api = freshly fetched, cached = in-memory cache, degraded = upstream unreachable, stale or empty payload. | |
| event_count | Yes | Number of VEVENTs in the calendar. | |
| retrieved_at | Yes | ISO-8601 UTC timestamp of the underlying fetch. |