muninn_table_records_import
Import MANY records into one table in a single call. dryRun is TRUE BY DEFAULT - the first call validates and reports what would be written, and nothing is saved until you call again with dryRun:false. Validates the whole batch before writing anything and returns every error at once with its record index, so a bad cell costs one round trip, not one per record. Nothing is coerced: a checkbox field wants true/false, not the string TRUE. Pass upsertKey (field keys forming a natural key) with onConflict:update to make re-running the same import idempotent instead of duplicating everything. Writes are BUDGETED per call - the response carries remaining and nextIndex, and you re-send the tail from there.
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": {
"tableSlug": "<tableSlug>",
"records": "<records>"
},
"name": "muninn_table_records_import"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Tags merged into every record's own tags. | |
| dryRun | No | TRUE BY DEFAULT. Validate and report without writing. Pass false to commit. | |
| project | No | Project slug applied to every record that does not set its own. | |
| records | Yes | The records to import, in order. Their INDEX in this array is what error messages and the per-record result refer to. | |
| maxWrites | No | How many records to commit in THIS call. Defaults to 6, which keeps one call within the server's per-call limit. Call again to commit the rest. | |
| tableSlug | Yes | Which table to import into. Must already be declared with muninn_table_define. | |
| upsertKey | No | Field keys forming a natural key, e.g. [source_file, worksheet]. Requires reading existing records, so it is refused on tables larger than 300 rows. | |
| onConflict | No | What to do when upsertKey matches an existing record. Only meaningful with upsertKey. | error |