Apply an amount across rows of another list
Work out how the amount one row holds (a payment, a credit, a grant) goes across the open amounts of rows of another list (invoices, bills, budgets) as allocation rows, propose it first, answer allocations to take back, or read what is applied and open on a row
action propose works out, writing nothing, how the source row's amount would go across the targets in an order (oldest_first by default, or as read-data/list-settlements.json orders say) and what is left unapplied as a credit. apply answers one allocation row per target (source, target, amount, date, request) for the allocations list "<source>-to-<target>-allocations" under keep, for the caller to store; give items [{ target_id, amount }] or leave them out to apply the proposal; request_key makes it apply once. Every item is answered done, already_done or refused with why, and the outcome says all, some or none. remove answers allocation_ids as rows to take away under keep, reopening exactly those targets once stored. position reads one row ({ row: { row_id, amount_field }, role, allocations: { list_id } }): its amount, applied, open and the allocations behind it. A row with no amount is refused: empty is not zero. Body: lists (the rows read), source { row_id, amount_field }, targets { list_id, amount_field, order_field?, row_ids? }, order, allocations { list_id?, *_field? }.
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 how the amount one row holds (a payment, a credit, a grant) goes across the open amounts of rows of another list (invoices, bills, budgets) as allocation rows, propose it first, answer allocations to take back, or read what is applied and open on a row”