contentrain_bulk
Batch update content entries: copy locales, change statuses, or delete entries, with dry-run preview to see exact changes before committing.
Instructions
Batch operations on content entries. All operations are auto-committed to git. DRY RUN (dry_run:true): runs the whole operation in a throwaway worktree and reports exactly what would change — nothing is committed and no branch survives. Recommended workflow: preview with dry_run:true, review the counts, then call again to execute.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | Model ID | |
| slugs | No | Document slugs for update_status (document models) — a document is addressed by slug, the same identity contentrain_content_save uses, not by entry ID | |
| locale | No | Scope update_status to a single locale (i18n models only; defaults to every supported locale) | |
| status | No | New status for update_status | |
| confirm | No | Must be true for delete_entries (not needed while dry_run:true — a preview deletes nothing) | |
| dry_run | No | Preview mode: perform the operation in a throwaway worktree and report what would change, committing nothing. Defaults to false so existing callers keep executing. | |
| entry_ids | No | Entry IDs for update_status (collection models) or delete_entries | |
| operation | Yes | ||
| source_locale | No | Source locale for copy_locale operation | |
| target_locale | No | Target locale for copy_locale operation |