Upload Dataset
lexq_dataset_uploadUpload inline CSV or JSON content as a simulation dataset. The content is uploaded to S3 and a path is returned in the "path" field.
To use the returned path in lexq_simulation_start, set: dataset: { "type": "UPLOADED", "source": "S3_BUCKET", "path": "" }
The content travels inside the tool call, so this suits small datasets, and the hosted server at mcp.lexq.io limits the size of a request. For a larger file, use lexq_dataset_upload_file on the local server (lexq serve --mcp), or upload it with the CLI or the console and pass the returned path.
CSV example: userId,paymentAmount user_001,150000 user_002,50000
JSON example: [{"userId":"user_001","paymentAmount":150000}, {"userId":"user_002","paymentAmount":50000}]
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | CSV or JSON content as string | |
| filename | No | Filename with extension (.csv or .json) | dataset.csv |