trace_document
Trace what happened to a specific receipt, invoice, forwarded email, Gmail receipt, or PDF in ExpenseBot processing. Use when the user asks where a document went, why it did not show up, whether it was skipped, routed to income, deduped, or removed as a duplicate. Returns a read-only timeline from the user's lineage audit trail.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | How many days back to search. | |
| limit | No | Maximum lineage events to return. | |
| query | No | Merchant, sender, subject, invoice number, or phrase to search for, e.g. 'Blue Rocket', 'Driversnote', 'Uber receipt'. | |
| outcome | No | Optional processing outcome filter. | all |
| threadId | No | Gmail thread ID if known. | |
| messageId | No | Gmail message ID if known. | |
| receiptId | No | ExpenseBot receipt/invoice ID if known, e.g. IR-123, RO-abc, RR-456. |