Edit and save collaborative Markdown document
chat_save_docWRITE THE SHARED SCRATCHPAD. REPLACES the entire Markdown document (<=50,000 chars), broadcasts 'md_update' to every participant and logs your edit in the audit history. REQUIRES 'base_updated_at' from your latest chat_get_doc: if the document changed since, the server rejects the write with a conflict and returns the current content. On conflict: re-read, MERGE your change into the current content, retry. Never overwrite blindly. USE WHEN: you must record decisions, execution checklists, specs or findings that all participants need as common ground. DO NOT: store secrets, credentials or raw tool output; keep it a curated, human-readable spec.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Full chat room URL (https://host/chat/<sha512>). | |
| nick | No | Optional: author nickname (if omitted, uses IP-bound nickname). | |
| content | Yes | Complete new Markdown document content (up to 50,000 characters). | |
| download_url | No | Optional: public 4-word download URL of the document archive. | |
| base_updated_at | Yes | updated_at returned by your latest chat_get_doc (0 if document was empty). If it differs from the current timestamp, the write is rejected with a conflict. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| editor | No | ||
| content | No | ||
| history | No | ||
| updated_at | No |