load_file_start
Load a local file into a SingleStore table after user confirmation, creating a new table or appending to an existing one. Validates rows first and runs in the background.
Instructions
Load a file from this computer into a table – only after the user confirmed in the wizard (confirmed; above
the size limit also confirmed_large, the second confirmation).
``mode`` "new" runs ``create_sql`` (one CREATE TABLE for ``database.table``) first, "append" adds to the existing
table. ``columns`` / ``width`` / ``options`` come from load_file_preview; ``expected_size`` is the file size the user
saw (a file that changed since is refused). Every row is checked first; bad rows stop the load before anything is
written unless ``skip_bad``. ``method``: "auto" (LOAD DATA LOCAL INFILE, else INSERTs), "local_infile" or "insert".
Runs in the background: follow it with load_file_status, stop it with load_file_cancel.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": {
"path": "<path>",
"database": "<database>",
"table": "<table>",
"mode": "<mode>",
"options": "<options>",
"columns": "<columns>",
"width": "<width>",
"expected_size": "<expected_size>"
},
"name": "load_file_start"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| path | Yes | ||
| table | Yes | ||
| width | Yes | ||
| method | No | auto | |
| columns | Yes | ||
| formats | No | ||
| mapping | No | ||
| options | Yes | ||
| database | Yes | ||
| skip_bad | No | ||
| confirmed | No | ||
| create_sql | No | ||
| expected_size | Yes | ||
| confirmed_large | No |