create_habit
Create smart habits with automated scheduling by setting preferred times, durations, frequencies, and protection levels for calendar integration.
Instructions
Create a new smart habit for auto-scheduling.
Args: title: Habit name/title ideal_time: Preferred time in "HH:MM" format (e.g., "09:00") duration_min_mins: Minimum duration in minutes frequency: Recurrence (DAILY, WEEKLY, MONTHLY, YEARLY) - default WEEKLY ideal_days: Days for WEEKLY frequency (MONDAY, TUESDAY, etc.) event_type: Type (FOCUS, SOLO_WORK, PERSONAL, etc.) - default SOLO_WORK defense_aggression: Protection level (DEFAULT, NONE, LOW, MEDIUM, HIGH, MAX) duration_max_mins: Maximum duration in minutes (defaults to min duration) description: Optional habit description enabled: Whether habit is active (default True) time_policy_type: Time policy (WORK, PERSONAL, MEETING). Auto-inferred if not provided.
Returns: Created habit object.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | ||
| ideal_time | Yes | ||
| duration_min_mins | Yes | ||
| frequency | No | WEEKLY | |
| ideal_days | No | ||
| event_type | No | SOLO_WORK | |
| defense_aggression | No | DEFAULT | |
| duration_max_mins | No | ||
| description | No | ||
| enabled | No | ||
| time_policy_type | No |