createNotebookEntry
Add experimental procedures, results, or observations to an existing RSpace notebook with HTML or plain text formatting.
Instructions
Adds a new entry to an existing notebook
Usage: Add experimental procedures, results, or observations to a notebook Content: Supports both HTML and plain text formatting Returns: Created entry information
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The name of the notebook entry | |
| notebook_id | Yes | The id of the notebook to add the entry | |
| text_content | Yes | html or plain text content |
Implementation Reference
- main.py:424-438 (handler)The main handler function for the 'createNotebookEntry' tool. It creates a new document entry in a specified notebook (folder) using the RSpace ELN client, passing the name, content, and parent notebook ID.def create_notebook_entry( name: Annotated[str, Field(description="The name of the notebook entry")], text_content: Annotated[str, Field(description="html or plain text content ")], notebook_id: Annotated[int, Field(description="The id of the notebook to add the entry")], ) -> Dict[str, any]: """ Adds a new entry to an existing notebook Usage: Add experimental procedures, results, or observations to a notebook Content: Supports both HTML and plain text formatting Returns: Created entry information """ resp = eln_cli.create_document(name, parent_folder_id=notebook_id, fields=[{'content': text_content}]) return resp
- main.py:423-423 (registration)Registers the 'createNotebookEntry' tool with the FastMCP server, making it available via MCP with the 'rspace' tag.@mcp.tool(tags={"rspace"}, name="createNotebookEntry")