reorder_columns
Rearrange column positions within a Yokan Kanban board by specifying the desired order of column IDs.
Instructions
Reorders columns within a board.
Args: board_id (int): The ID of the board containing the columns. column_ids (List[str]): A list of column IDs in the desired new order. auth (AuthContext): The authentication context containing user ID and token.
Returns: int: The ID of the updated board.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| board_id | Yes | ||
| column_ids | Yes | ||
| auth | Yes |
Implementation Reference
- src/main.py:285-304 (handler)The reorder_columns tool handler updates the board's columnOrder in the data object and calls the YokanClient to update the board.
async def reorder_columns( board_id: int, column_ids: List[str], auth: AuthContext, ) -> int: """Reorders columns within a board. Args: board_id (int): The ID of the board containing the columns. column_ids (List[str]): A list of column IDs in the desired new order. auth (AuthContext): The authentication context containing user ID and token. Returns: int: The ID of the updated board. """ board = await yokan_client.get_board(board_id=board_id, token=auth.token) board.data["columnOrder"] = column_ids return await yokan_client.update_board( board_id=board_id, name=board.name, data=board.data, token=auth.token )