sync_index
Plan, start, inspect, or cancel scoped Outlook mail indexing for semantic search, using confirmed date ranges to control what gets indexed.
Instructions
Plan, start, inspect or cancel indexing.
For 'create DB' without a period, call plan first: show 30/90/365-day and all-time counts/time estimates and ASK which scope to use; never silently start all time or choose a period. plan reads Outlook metadata only, no embedding API or index writes. start requires confirmed=true AND explicit since_days (otherwise confirmation_required, no job). Set confirmed=true only for the user's chosen/approved scope. Explicit date/folder limits take precedence over all/everything: all mail from last 30 days still means since_days=30. An unrestricted all/everything/全部 request approves folders=['auto'], since_days=0 without another question. Positive since_days limits indexing without deleting older indexed mail. Default status is offline with approximate remaining-time estimates: initial assumptions, then measured scan speed. Reused jobs retain their original scope; report mismatches/unknown scope. cancel keeps committed mail. Startup/search never launch sync.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | status | |
| job_id | No | ||
| folders | No | ||
| confirmed | No | ||
| reconcile | No | ||
| since_days | No |