combine
Merge multiple files or sheets into one by appending rows—even with different column orders—or joining records on key columns.
Instructions
Merge many files into one: append/concatenate (even with different column orders) or join on keys.
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": {
"sources": "<sources>"
},
"name": "combine"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| on | No | Key columns for join mode. | |
| how | No | Join type. | inner |
| mode | No | append = stack rows (columns matched by name); join = merge on keys. | append |
| limit | No | Max rows to return (default from server config, usually 100). | |
| format | No | json = rows as arrays, records = list of objects, markdown = a table. | json |
| output | No | Save the FULL result to this file (.xlsx/.csv/.parquet/.json/.md) instead of returning rows. | |
| sources | Yes | 2+ files/sheets, e.g. ['jan.csv', 'feb.csv', 'q1.xlsx#March']. | |
| output_sheet | No | When output is an existing .xlsx: write into this sheet (replaced if it exists), keeping other sheets. | |
| add_source_column | No | append: add a _source column with the origin file. |