Bring in a file
import_fileBring a file into a model from a place AMT can read, so it never passes through the chat: a link (when files from links are switched on), a warehouse table, or (for picture models' fills) a storage folder, as list_sources lists them. purpose training replaces the model's training data with the file (then use columns, data_quality and train); fill and test make it the file start_fill fills (test: a file whose right answers are already in a column). Two steps: the first call changes nothing and returns what will happen plus a confirmation code; only after the user explicitly agrees call again with that exact code.
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": {
"model_id": "<model_id>",
"purpose": "<purpose>"
},
"name": "import_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | A link that opens the file itself (CSV, Excel, JSON, or a ZIP of pictures), such as a share link or a signed URL. | |
| purpose | Yes | ||
| storage | No | A folder from list_sources, for filling a picture model. | |
| model_id | Yes | The model id, from list_models. | |
| warehouse | No | A table from list_sources. For training: columns (what the model reads) and label_column (the answers). For fill: key_column (the column that identifies each row) and only_new. | |
| confirmation | No | The code from the first call, sent only after the user said yes. |