update_chatmode_from_source
Synchronize a .chatmode.md file with its source definition in the Mode Manager MCP server, ensuring content accuracy and consistency.
Instructions
Update a .chatmode.md file from its source definition.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | The filename of the chatmode to update from source (with or without extension) |
Implementation Reference
- The main handler function implementing the 'update_chatmode_from_source' tool logic. Currently returns a 'Not implemented' message.def update_chatmode_from_source( filename: Annotated[str, "The filename of the chatmode to update from source (with or without extension)"], ) -> str: """Update a .chatmode.md file from its source definition.""" return "Not implemented"
- src/mode_manager_mcp/tools/chatmode_tools.py:192-206 (registration)Registration of the 'update_chatmode_from_source' tool using the @app.tool decorator, including description, tags, annotations for schema, and metadata.@app.tool( name="update_chatmode_from_source", description="Update a .chatmode.md file from its source definition.", tags={"public", "chatmode"}, annotations={ "idempotentHint": False, "readOnlyHint": False, "title": "Update Chatmode from Source", "parameters": {"filename": "The filename of the chatmode to update from its source. If .chatmode.md extension is not provided, it will be added automatically."}, "returns": "Returns a success message if the chatmode was updated from source, or an error message. Note: This feature is currently not implemented.", }, meta={ "category": "chatmode", }, )
- Input/output schema definition for the 'update_chatmode_from_source' tool provided in the annotations dictionary.annotations={ "idempotentHint": False, "readOnlyHint": False, "title": "Update Chatmode from Source", "parameters": {"filename": "The filename of the chatmode to update from its source. If .chatmode.md extension is not provided, it will be added automatically."}, "returns": "Returns a success message if the chatmode was updated from source, or an error message. Note: This feature is currently not implemented.", },