Reconcile lines against a statement
Work out closing a set of cleared lines against a statement with any difference explained in words, answer a receipt of each close, find lines changed or removed after they were closed, and answer the undo of the last close
action close takes lines { amount_field, closed_in_field? }, row_ids, period, opening_balance, statement_balance, request_key and residual_reason when the lines do not add up to the statement; it answers each line marked closed and the receipt for "<lines>-reconciliations" under keep, for the caller to store. The same request_key returns the same receipt; a line already closed elsewhere is refused. check lists every line that changed or was removed after its close (record: true answers each as a discrepancy row to keep, once). undo answers the lines of the latest close reopened and its receipt marked undone; the receipt stays. Give the lists in lists.
What it asks for
Nothing: your AI starts it with your words.
Use it from your AI
Connect the AI you already use to Trillion once. Then ask in your own words; your AI finds this tool by what it does and runs it.
Say to your AI: “Use Trillion to work out closing a set of cleared lines against a statement with any difference explained in words, answer a receipt of each close, find lines changed or removed after they were closed, and answer the undo of the last close”