publish_form
Activate a form to enable document creation in RSpace. Use this tool after creating or modifying forms to make them available for generating research documents.
Instructions
Makes a form available for creating documents
Usage: Activate form after creation/modification Note: Forms must be published before they can be used for document creation Returns: Updated form status
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| form_id | Yes |
Implementation Reference
- main.py:524-534 (handler)The handler function for the MCP tool 'publish_form'. The @mcp.tool decorator registers the tool with the FastMCP server. The function takes a form_id and delegates the publishing operation to the RSpace ELN client (eln_cli.publish_form). This constitutes the complete implementation of the tool within the codebase.@mcp.tool(tags={"rspace"}) def publish_form(form_id: int | str) -> dict: """ Makes a form available for creating documents Usage: Activate form after creation/modification Note: Forms must be published before they can be used for document creation Returns: Updated form status """ return eln_cli.publish_form(form_id)