utilpeek: build an .ics calendar file from 1-50 events given as JSON
build_ics_eventGenerate an iCalendar file from JSON events, returning RFC 5545 VCALENDAR text with base64 and UIDs. Use it to programmatically create calendar invites or event feeds.
Instructions
utilpeek: Build an iCalendar file from JSON events. To read an .ics file use parse_ics. Returns RFC 5545 VCALENDAR text built from 1-50 events, CRLF lines folded at 75 octets and text escaped, with its base64, a data: URI and the uids. Input: events, optional calendar_name, default timezone and time_format. Pure computation: no network access, nothing stored. A zoned start is written as TZID= with no VTIMEZONE block; an offset becomes UTC; a plain local time stays floating. All-day end is the last day, inclusive. A bad time zone, date, rrule, email or url, or both end and duration, is a 422 naming the event (not charged). Typically under 0.1 s. Price: USD 0.001. Free: 10 utilpeek calls per IP per UTC day. Docs: https://tanod.dev/learn/ics-calendar-api.html
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| events | Yes | 1-50 events. | |
| timezone | No | Default IANA time zone for events without one. | |
| time_format | No | tzid (default): zoned times as TZID=...; utc: all times in UTC. | tzid |
| calendar_name | No | Calendar name (X-WR-CALNAME). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ics | No | ||
| note | No | ||
| uids | No | ||
| bytes | No | ||
| error | No | Only on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object. | |
| base64 | No | ||
| data_uri | No | ||
| filename | No | ||
| event_count | No | ||
| time_format | No |