Document Update
document_updateRename, move, or update metadata for a stored document by applying at least one mutation, including adding, replacing, or clearing metadata keys.
Instructions
Update a stored document: rename, move between categories, or modify metadata.
Provide at least one mutation. metadata_add, metadata_replace, and metadata_clear are mutually exclusive.
Arguments
session_id: string | null
Opaque Guide interaction identifier returned by set_project. Pass it through unchanged on later tool, prompt, and resource calls. Do not construct, alter, or treat it as a FastMCP transport session id.
category (required): string
Category the document belongs to
name (required): string
Document name to update
new_name: string | null
New document name. At least one mutation is required.
new_category: string | null
New category to move the document to. At least one mutation is required.
metadata_add: object | null
Metadata entries to merge into existing metadata. Mutually exclusive with metadata_replace and metadata_clear.
metadata_replace: object | null
Replace the entire metadata dict. Mutually exclusive with metadata_add and metadata_clear.
metadata_clear: array[string] | null
Metadata keys to remove. Mutually exclusive with metadata_add and metadata_replace.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"args": "<args>"
},
"name": "document_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | Yes | Arguments for document_update tool. |