Add ingestion file
add_ingestion_fileAdd one source to an ingestion batch. Pass text for pasted TEXT (an email thread, itinerary, notes, a schedule), or filename plus content_base64 for a binary file (PDF, image, spreadsheet) — max 8 MiB decoded, which fits the hosted MCP 12 MiB JSON body after base64. Returns 202 and analysis runs asynchronously. Not for tabular CSV imports. Prefer request_attachment_upload when the host app can upload staged attachments. Runs on the first call; there is no confirmation step.
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>"
},
"name": "add_ingestion_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | pasted text to ingest — an email thread, itinerary, notes, a schedule... | |
| 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 | |
| filename | No | file only: the filename to store (e.g. contract.pdf) | |
| source_name | No | text only: a label for the text (e.g. 'promoter-email'); defaults to pasted-text.txt | |
| content_type | No | file only: MIME type (defaults to application/octet-stream) | |
| content_base64 | No | file only: base64 file bytes; data URLs (data:...;base64,...) are accepted | |
| organization_id | No | defaults to caller's active org — pass explicitly if the event belongs to a different org |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | true on success (including confirmation_required prompts) | |
| data | No | 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 } } } | |
| error | No | when ok is false |