update_document
Modify RSpace document content, name, tags, or metadata to keep research data current and organized.
Instructions
Updates existing RSpace document content and metadata
Usage: Modify document name, tags, or field content Fields format: [{"id": field_id, "content": "new HTML content"}] Returns: Updated document information
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document_id | Yes | ||
| name | No | ||
| tags | No | ||
| form_id | No | ||
| fields | No |
Implementation Reference
- main.py:148-170 (handler)The 'update_document' tool handler function. It is registered via the @mcp.tool decorator and implements the tool logic by calling the underlying eln_cli.update_document method with the provided parameters.@mcp.tool(tags={"rspace"}) def update_document( document_id: int | str, name: str = None, tags: List[str] = None, form_id: int | str = None, fields: List[dict] = None ) -> dict: """ Updates existing RSpace document content and metadata Usage: Modify document name, tags, or field content Fields format: [{"id": field_id, "content": "new HTML content"}] Returns: Updated document information """ return eln_cli.update_document( document_id=document_id, name=name, tags=tags, form_id=form_id, fields=fields )