attach_files
Put uploaded files on a row: the last step after start_upload and the PUT. Adds to the row's attachment cell, keeping what is there; nothing here removes or replaces a file. Name each upload by upload_id, on a row of the table it was started for (e.g. the row_id append_rows returned). filename renames it on this row. A file already there under that name returns in already_attached, so repeating is safe. Each file gets a file_id.
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": {
"table_id": "<table_id>",
"row_id": "<row_id>",
"files": "<files>"
},
"name": "attach_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | The uploads to add. | |
| row_id | Yes | The row's `row_id`: from `append_rows` for a row you just added, `describe_table` sample rows, or `_row_id` selected in `run_sql`. | |
| table_id | Yes | The table the upload was started for (`tab-…`). |