update_column
Modify column names in Yokan Board to organize project workflows and maintain accurate task categorization.
Instructions
Updates the name of a column.
Args: board_id (int): The ID of the board containing the column. column_id (str): The ID of the column to update. name (str): The new name for the column. auth (AuthContext): The authentication context containing user ID and token.
Returns: yokan_models.Column: The updated column object.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| board_id | Yes | ||
| column_id | Yes | ||
| name | Yes | ||
| auth | Yes |
Implementation Reference
- src/main.py:253-280 (handler)The tool "update_column" is registered with `@app_instance.tool` and `@error_handler` and implemented by the async function `update_column`, which modifies the title of a column in a Kanban board.
@app_instance.tool @error_handler async def update_column( board_id: int, column_id: str, name: str, auth: AuthContext, ) -> yokan_models.Column: """Updates the name of a column. Args: board_id (int): The ID of the board containing the column. column_id (str): The ID of the column to update. name (str): The new name for the column. auth (AuthContext): The authentication context containing user ID and token. Returns: yokan_models.Column: The updated column object. """ board = await yokan_client.get_board(board_id=board_id, token=auth.token) if "columns" not in board.data or column_id not in board.data["columns"]: raise McpError(error=ErrorData(code=NOT_FOUND, message="Column not found")) column = board.data["columns"][column_id] column["title"] = name await yokan_client.update_board( board_id=board_id, name=board.name, data=board.data, token=auth.token ) return yokan_models.Column(**column)