update_document
Modify or replace the title and content of an existing document. Use this tool to edit, append, or correct information in documents. Requires the full document content for updates with changes.
Instructions
Modifies an existing document's title or content.
IMPORTANT: This tool replaces the document content rather than just
adding to it. To update a document with changed data, you need to first read the document, add your changes to the content, and then send the complete document with your changes.
Use this tool when you need to:
- Edit or update document content
- Change a document's title
- Append new content to an existing document
- Fix errors or add information to documents
Args:
document_id: The document ID to update
title: New title (if None, keeps existing title)
text: New content (if None, keeps existing content)
append: If True, adds text to the end of document instead of
replacing
Returns:
Result message confirming update
Input Schema
Name | Required | Description | Default |
---|---|---|---|
append | No | ||
document_id | Yes | ||
text | No | ||
title | No |
Input Schema (JSON Schema)
{
"properties": {
"append": {
"default": false,
"title": "Append",
"type": "boolean"
},
"document_id": {
"title": "Document Id",
"type": "string"
},
"text": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Text"
},
"title": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Title"
}
},
"required": [
"document_id"
],
"title": "update_documentArguments",
"type": "object"
}