update_document
Modify collaborative documents by updating or appending content in Tiptap JSON format, specifying the document ID and update mode (replace or append).
Instructions
Update a collaborative document with new content
Input Schema
Name | Required | Description | Default |
---|---|---|---|
content | Yes | Document content in Tiptap JSON format | |
id | Yes | ID of the document to update | |
mode | No | Update mode: replace entire document or append content (default: replace) |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"content": {
"additionalProperties": false,
"description": "Document content in Tiptap JSON format",
"properties": {},
"type": "object"
},
"id": {
"description": "ID of the document to update",
"type": "string"
},
"mode": {
"description": "Update mode: replace entire document or append content (default: replace)",
"enum": [
"replace",
"append"
],
"type": "string"
}
},
"required": [
"id",
"content"
],
"type": "object"
}