write_document
Write or replace full text content in a shared document by specifying document ID and share ID. Use for collaborative document editing with real-time sync.
Instructions
Write content to a document by doc_id (doc shares only).
For folder shares, use upsert_file instead.
Args: share_id: UUID of the share (for ACL check). doc_id: Document UUID. content: Full text content to write (replaces entire document). key: Yjs shared type key. Default "contents".
Returns: JSON with doc_id, length.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| share_id | Yes | ||
| doc_id | Yes | ||
| content | Yes | ||
| key | No | contents |