renameDocumentOrNotebookEntry
Update document or notebook entry titles to improve organization and clarity in RSpace research data.
Instructions
Changes the name/title of a document or notebook entry
Usage: Update document titles for better organization Returns: Updated document information
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_id | Yes | ||
| name | Yes |
Implementation Reference
- main.py:459-471 (handler)The core handler function for the 'renameDocumentOrNotebookEntry' tool. It is registered via the @mcp.tool decorator specifying the exact tool name. The function takes a document ID (int or str) and new name, then calls the RSpace ELN client's update_document method to perform the rename operation, returning the updated document information.@mcp.tool(tags={"rspace"}, name="renameDocumentOrNotebookEntry") def rename_document( doc_id: int | str, name: str ) -> Dict[str, any]: """ Changes the name/title of a document or notebook entry Usage: Update document titles for better organization Returns: Updated document information """ resp = eln_cli.update_document(document_id=doc_id, name=name) return resp
- main.py:459-459 (registration)The @mcp.tool decorator registers the rename_document function as the MCP tool named 'renameDocumentOrNotebookEntry' with 'rspace' tag.@mcp.tool(tags={"rspace"}, name="renameDocumentOrNotebookEntry")