Loading...
Loading...
Calendar and schedule management. Used when users request to view calendars, create schedules, and manage schedules. Supports operations such as listing calendars, creating/viewing/updating/deleting schedules.
npx skill4agent add riba2534/feishu-cli feishu-cli-calendar/feishu-calendar list # List all calendars
/feishu-calendar list-events <calendar_id> # List events in a calendar
/feishu-calendar create-event --calendar-id <id> ... # Create an event
/feishu-calendar get-event <calendar_id> <event_id> # Get event details
/feishu-calendar update-event <calendar_id> <event_id> # Update an event
/feishu-calendar delete-event <calendar_id> <event_id> # Delete an eventfeishu-cli calendar listCalendar List:
1. Calendar ID: CAL_xxx
Name: My Calendar
Type: primary
2. Calendar ID: CAL_yyy
Name: Team Calendar
Type: shared# Basic usage
feishu-cli calendar create-event \
--calendar-id CAL_ID \
--summary "Event Title" \
--start 2024-01-21T14:00:00+08:00 \
--end 2024-01-21T15:00:00+08:00
# With description and location
feishu-cli calendar create-event \
--calendar-id CAL_ID \
--summary "Project Review" \
--start 2024-01-21T14:00:00+08:00 \
--end 2024-01-21T16:00:00+08:00 \
--description "Q1 Project Progress Review" \
--location "Meeting Room A101"
# JSON format output
feishu-cli calendar create-event \
--calendar-id CAL_ID \
--summary "Meeting" \
--start 2024-01-21T14:00:00+08:00 \
--end 2024-01-21T15:00:00+08:00 \
--output json| Parameter | Shortcut | Description | Required |
|---|---|---|---|
| | Calendar ID | Yes |
| | Event title | Yes |
| Start time (RFC3339 format) | Yes | |
| End time (RFC3339 format) | Yes | |
| | Event description | No |
| | Location | No |
| | Output format (json) | No |
# List all events
feishu-cli calendar list-events CAL_ID
# Specify time range
feishu-cli calendar list-events CAL_ID \
--start-time 2024-01-01T00:00:00+08:00 \
--end-time 2024-01-31T23:59:59+08:00
# Pagination query
feishu-cli calendar list-events CAL_ID --page-size 20
# JSON format output
feishu-cli calendar list-events CAL_ID --output json| Parameter | Description | Default Value |
|---|---|---|
| Start time filter | None |
| End time filter | None |
| Number of items per page | 50 |
| Pagination token | None |
| Output format | Text |
feishu-cli calendar get-event CAL_ID EVENT_ID# Update title
feishu-cli calendar update-event CAL_ID EVENT_ID --summary "New Title"
# Update time
feishu-cli calendar update-event CAL_ID EVENT_ID \
--start 2024-01-21T15:00:00+08:00 \
--end 2024-01-21T16:00:00+08:00
# Update multiple fields
feishu-cli calendar update-event CAL_ID EVENT_ID \
--summary "Updated Meeting" \
--description "Meeting content has been updated" \
--location "Meeting Room B202"| Parameter | Shortcut | Description |
|---|---|---|
| | New event title |
| New start time | |
| New end time | |
| | New event description |
| | New location |
| | Output format (json) |
feishu-cli calendar delete-event CAL_ID EVENT_ID2024-01-21T14:00:00+08:002024-01-21T06:00:00Z| Time Zone | Offset | Example |
|---|---|---|
| Beijing Time | | |
| UTC | | |
| Tokyo Time | | |
# 1. Get calendar list
feishu-cli calendar list
# 2. View today's events in the specified calendar
feishu-cli calendar list-events CAL_ID \
--start-time 2024-01-21T00:00:00+08:00 \
--end-time 2024-01-21T23:59:59+08:00# 1. Get calendar ID
feishu-cli calendar list
# 2. Create event
feishu-cli calendar create-event \
--calendar-id CAL_xxx \
--summary "Weekly Meeting" \
--start 2024-01-21T10:00:00+08:00 \
--end 2024-01-21T11:00:00+08:00 \
--description "Weekly Team Meeting" \
--location "Meeting Room 101"# 1. Get event list
feishu-cli calendar list-events CAL_ID
# 2. Update event time
feishu-cli calendar update-event CAL_ID EVENT_ID \
--start 2024-01-21T15:00:00+08:00 \
--end 2024-01-21T16:00:00+08:00calendarcalfeishu-cli cal list
feishu-cli cal list-events CAL_ID| Error | Cause | Solution |
|---|---|---|
| Insufficient permissions | Check if the app has calendar permissions enabled |
| Invalid calendar ID | Use |
| Invalid event ID | Use |
| Incorrect time format | Use RFC3339 format (including time zone) |
| API rate limit exceeded | Wait a few seconds and try again |
calendar listcalendar:calendar:readonlycalendar:calendarcalendar:calendar.calendar:readonlycalendar:calendar:readAccess denied