Commit ingestion file
commit_ingestion_fileCommit the selected proposals from ONE ingested file onto the gig — WRITES live data. Not reversible. Always call get_ingestion_file_review first and pass the rows to commit as selected: their UEF 2.0 document paths in the review's proposals ($.events[0].days[d].run_of_show[c], $.events[0].shifts[s].crew[k], $.events[0].ledger_items[i], $.leads[l]). Confirmation-gated.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"event_id": "<event_id>",
"batch_id": "<batch_id>",
"file_id": "<file_id>",
"selected": "<selected>"
},
"name": "commit_ingestion_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_id | Yes | the ingested file id within the batch | |
| batch_id | Yes | the ingestion batch id, from create_ingestion_batch or list_ingestion_batches | |
| event_id | Yes | the gig the ingestion batch belongs to, an id from list_events, open_gigs or my_agenda | |
| selected | Yes | UEF 2.0 document paths of the review's proposal rows to commit, e.g. $.events[0].days[1].run_of_show[2], $.events[0].shifts[3].crew[0], $.events[0].ledger_items[4], $.leads[1]. Paths index the review's proposals (or edited_uef_json when sent); a path that names no row is a 400. | |
| edited_uef_json | No | optional corrected UEF document as a JSON string; selected paths name rows in it | |
| organization_id | No | defaults to caller's active org — pass explicitly if the event belongs to a different org | |
| confirmation_token | No | leave empty on the first call; the server returns confirmation_required + a token, then resend the SAME args with that token to proceed |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | true on success (including confirmation_required prompts) | |
| data | No | when the tool asks first: { status: "confirmation_required", confirmation_token, summary, expires_in_seconds, instructions } and nothing is changed; once confirmed, the API response { status (HTTP status), data: { file { packet_counts, parts_failed, ai_summary, attachment_id, batch_id, category, commit_result, undo_commit_id, and 12 more fields }, result { duplicate_rows, error_rows, errors, failed_rows, finished_at, load_commit_id, provenance_recorded, new_acts, and 67 more fields } } } | |
| error | No | when ok is false |