Mailbox File Write
mailbox_file_writeWrite a text file to private mailbox storage. Respect locks and expected_mailbox_revision_id. Use direct uploads or the CLI for binary files.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Mailbox-relative path, for example notes.md, leads.csv, or site/index.html. | |
| reason | No | Optional reason for this action. AI agents should include a short purpose for intentional reads and changes when known. Do not invent a reason or include secrets, file contents, or transcripts. | |
| content | Yes | UTF-8 text file content (HTML/CSS/JS/JSON/SVG/Markdown/etc.). Use revdoku upload or REST direct uploads for binary files (images, fonts, PDFs). | |
| account_id | No | Optional account id from revdoku_status.accounts for this call only. Omit for the credential's default account. Client accounts require explicit Agency authorization; never infer an account from a mailbox id. | |
| mailbox_id | Yes | Value for mailbox id. | |
| content_type | No | MIME type such as text/html, text/css, text/plain, or application/json. | |
| expected_mailbox_revision_id | No | Optional optimistic-concurrency token from mailbox.current_mailbox_revision_id. A stale value returns MAILBOX_REVISION_CONFLICT without saving. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mailbox | Yes | ||
| skipped | Yes | ||
| written | Yes | ||
| guidance | No |