Bucket File Write Many
bucket_file_write_manyWrite multiple TEXT website files (HTML/CSS/JS/JSON/SVG/Markdown/etc.) in one bucket edit. For Wbuilder, read AGENTS.md first, edit data/, leave _config/ read-only, and pass expected_bucket_revision_id from bucket_get. Save-time checks validate recognized Wbuilder files before any entry is written; Preview performs full compilation. Binary assets and whole local folders use the CLI or REST direct-upload API. When delete_missing is true, omitted editable files are soft-deleted, but managed/generated files are preserved. The response's bucket carries dashboard_url (and public_url when published); show that link to the user instead of the raw bucket id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | Array of text files to write to the bucket. | |
| bucket_id | Yes | Real Revdoku bucket id returned by bucket_create or bucket_list, for example bkt_...; never use a placeholder id. | |
| delete_missing | No | When true, delete existing bucket files that are not present in this write set. | |
| revision_comment | No | Optional comment recorded with the file revision or path operation. | |
| expected_bucket_revision_id | No | Optional optimistic-concurrency token from bucket.current_bucket_revision_id. A stale value returns BUCKET_REVISION_CONFLICT without saving any file. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bucket | Yes | ||
| skipped | Yes | ||
| written | Yes | ||
| guidance | No |