create_files
Create up to 200 markdown or mermaid files in one batch call, with automatic folder creation and per-item error isolation. Use for bulk file ingestion.
Instructions
Batch variant of create_file — create up to 200 markdown or mermaid files in one call. Each item follows the same rules (project_id required if destination is project or kontexta). SIDE EFFECTS: writes new files to disk and inserts FTS5 rows; missing folders are mkdir'd. Per-item failures are isolated to errors[] and the rest of the batch still commits — partial success is the norm, always inspect error_count. No external auth or rate limits. Returns {created_count, error_count, created, errors}. Use for bulk ingestion; for >200 items, page yourself. Pass format='mmd' on an item to create a Mermaid diagram file (.mmd); defaults to 'md'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | Files to create (max 200 per call) |