update_chatmode_from_source
Update a .chatmode.md file from its source definition to maintain synchronization between chat modes and their source files.
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 core handler function for the 'update_chatmode_from_source' tool, which currently returns a placeholder 'Not implemented' message as the feature is not yet implemented.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)Registers the 'update_chatmode_from_source' tool with the FastMCP app inside the register_chatmode_tools function, specifying name, description, tags, annotations, 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", }, )
- Schema definition via annotations, including input parameters (filename), return description, and hints for idempotency and read-only status.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.", },