Skip to content

ingest_file_upload

Upload CSV or Excel bytes as a model data source. This tool does not access Google accounts or refresh external sheets.

NameTypeRequiredDefaultDescription
model_nameAnnotated[str, Field(description='Name of the Bridge Town model.')]Yes
source_nameAnnotated[str, Field(description='Logical data-source name for query_data.')]Yes
filenameAnnotated[str, Field(description='Original CSV or Excel filename.')]Yes
file_contentAnnotated[str, Field(description='Base64-encoded file bytes from a file-read or upload operation.')]Yes
workspace_id`Annotated[strNone, Field(description=WORKSPACE_ID_FIELD_DESCRIPTION)]`NoNone
ctx`ContextNone`NoNone

Returns a structured object. Top-level fields:

  • model_name (string)
  • source_name (string)
  • source_type (string)
  • data_source_id (string)
  • tables (array<string>)
  • row_count (integer)

See the response example below for the full payload shape.

{
"name": "ingest_file_upload",
"arguments": {
"model_name": "forecasts",
"source_name": "actuals",
"filename": "actuals_2026q1.csv",
"file_content": "PEJBU0U2NCBPRiAuY3N2IEZJTEUgQ09OVEVOVD4="
}
}
{
"model_name": "forecasts",
"source_name": "actuals",
"source_type": "parquet",
"data_source_id": "88888888-8888-8888-8888-888888888888",
"tables": [
"actuals"
],
"row_count": 24
}
  • Module: Data
  • Requires authentication via API token or Auth0 JWT.