# import_collection

Source: https://dropshelf.ai/docs/reference/mcp/tools/data/import_collection

Merge up to 1000 documents into a collection in one transaction: each needs an id; one that exists is replaced whole, one that does not is created.

Dry-run first with dryRun. A document whose rev no longer matches is a conflict and nothing is written, unless force. For more than 1000 documents call it several times, each call atomic on its own. Owner, editor or admin; an editor's new documents are theirs. get_platform_guide with section outside has the recipe for moving a collection to a new shape.

**Changes data · Destructive · Idempotent**

Needs `platform.db.enabled` on the instance.

## Input [#input]

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `collection` | string | yes | the collection |
| `documents` | array of object, nullable | yes | the documents, each as list_documents answers it or new; at most 1000 and 1 MB |
| `dryRun` | boolean | no | answer what the import would do and write nothing |
| `force` | boolean | no | overwrite documents that changed since you read them |
| `slug` | string | yes | the drop's name, the first label of its address |

Generated from dropshelf core at `6a548b2`, 26 Nov 2026.
