Manage macOS Calendar with OpenClaw in IM-first workflows (Telegram/Discord/Feishu/iMessage/Slack), including screenshot-to-schedule extraction, idempotent create/update, move/extend/reschedule, reminders, conflict checks, daily review sync, and duplicate cleanup. Use when users ask to add/edit/move/postpone events, parse schedule screenshots/chat messages, adjust weekly plans into daily execution, or keep calendar and review notes in sync.
Use bundled scripts for reliable Calendar.app operations.
scripts/list_events.swift <start_iso> <end_iso>scripts/upsert_event.py (create/update/skip)scripts/set_alarm.py --uid <event_uid> --alarm-minutes <n>scripts/calendar_clean.py --start <iso> --end <iso>TrainingWorkProductLifeNote: Calendar names vary by user setup. Map the intent to the closest local calendar name before writing.
swift scripts/list_calendars.swift
swift scripts/list_events.swift "2026-03-06T00:00:00+08:00" "2026-03-06T23:59:59+08:00"
Output includes uid for follow-up alarm/edit operations.
python3 scripts/upsert_event.py \
--title "Team sync" \
--start "2026-03-06T19:00:00+08:00" \
--end "2026-03-06T20:00:00+08:00" \
--calendar "Work" \
--notes "Agenda" \
--location "Online" \
--alarm-minutes 15
Result is one of: CREATED, UPDATED, SKIPPED.
Use --dry-run for preview.
python3 scripts/add_event.py --title "..." --start "..." --end "..."
python3 scripts/set_alarm.py --uid "EVENT_UID" --alarm-minutes 15
swift scripts/move_event.swift "Team sync" "Work" "2026-03-07T10:00:00+08:00" 60 --search-days 7
# optional precise match:
# --original-start "2026-03-06T10:00:00+08:00"
Prefer upsert_event.py for most rescheduling flows; use move_event.swift for direct title-based move when needed.
python3 scripts/calendar_clean.py --start "2026-03-01T00:00:00+08:00" --end "2026-03-08T23:59:59+08:00"
python3 scripts/calendar_clean.py --start "..." --end "..." --apply --confirm yes --snapshot-out ./delete-plan.json
python3 scripts/within_2h.py
python3 scripts/env_check.py
python3 scripts/regression_test.py
scripts/smoke_test.sh
scripts/install.sh # run env check + install cron from config.json
scripts/uninstall.sh # remove cron
Speaker ownership from chat screenshots
Conflict policy
Time-window intent parsing
Reschedule priority
Confirmation prompt template
config.json.timezone (fallback Asia/Shanghai) when user does not specify--apply only after reviewing dry-run output