get_scan_status
Check the authoritative status of the user's Gmail receipt scans. Returns the active scan lock, the same live phase and item progress shown by ExpenseBot's in-app status pill, queued or attention-needed years, completed calendar years, current merchant/category exclusions, and recent outcomes. Call when the user asks whether a scan is running, finished, stuck, or what it is doing. When complete, show the returned spreadsheetUrl or reviewExpensesUrl; when setup or reconnection is needed, show gmailScanUrl. Read-only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| lock | No | Scan-lock state (active, startedAt, ageSeconds, dispatchComplete, pendingProcessingCount). | |
| status | No | Scan lifecycle state. | |
| message | No | ||
| success | Yes | ||
| latestScan | No | Most recent scan outcome (success, emailsFound, emailsTagged, timestamp). | |
| gmailScanUrl | No | ||
| scanInProgress | No | ||
| spreadsheetUrl | No | ||
| reviewExpensesUrl | No |