upload_data
Send a whole base64-encoded file to a registered pipeline in one call for schema validation, transformation, vector chunking, and routing; returns a token to track job status.
Instructions
Upload data to a registered pipeline for processing. Send the ENTIRE file content as a single base64-encoded string in ONE call — do not pre-split or chunk the content client-side. Vector destinations (pgvector, qdrant, weaviate, milvus, chroma) apply recursive chunking server-side using the pipeline's configured chunkSize/chunkOverlap; for those, one upload_data call yields many embedded chunks automatically. The pipeline's rules are applied: schema validation, data quality checks, transformations, then routing to the configured destination. A Live Read (scratch) pipeline validates or transforms the file and hands the rows back (status rollup resultPreview, then get_pipeline_result) instead of landing them. Returns a pipelineToken for tracking job status via get_job_status. If this Datris instance's agent policy requires a person to approve this action, the call does NOT perform it: it returns status pending_approval with an approvalId. Tell the user it is waiting for approval in Datris, then poll get_approval with that id (pause with wait_seconds between polls) — do not re-issue the action.
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": {
"content": "<content>",
"filename": "<filename>",
"pipeline": "<pipeline>"
},
"name": "upload_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | Optional one-line reason for this change, recorded in the platform's audit log and shown to anyone asked to approve it. | |
| content | Yes | Base64-encoded file content | |
| filename | Yes | Filename (e.g., data.csv, report.json, orders.xml) | |
| pipeline | Yes | Pipeline name to process the data with |