# Kanban boards

The 4 tools for kanban boards. Before an agent first makes one, it reads guide topic kanban.

## create_kanban

Add a Kanban board to a space: cards in columns, as on Trello or Jira. It holds no cards of its own: connect it to a database table, a spreadsheet, or several of both (sources), and their records and rows are the cards, in columns by each one's group field. Moving a card writes its new column into that record or row, so the table, the sheet and the board agree; a change to the table or the sheet shows on the board. Make the database or sheet first (create_database, create_sheet). Read guide topic "kanban" first; check it with render_kanban.

Parameters:
- `space_id` (string, required)
- `title` (string, required): What the board tracks: "Hiring pipeline", "Sprint 14", "Content plan".
- `description` (string): One line under the title: what moves through it and who works it.
- `sources` (object[])
- `columns` (string[]): The columns in order, empty ones included ("Backlog", "In progress", "Review", "Done"). Left out: a select field's choices in their order, then every other value the cards have.

## read_kanban

A Kanban board as it is now: its connections (which table or sheet, which field makes the columns), then each column in order with its cards — each card's key (what update_kanban and comment take), title and the fields it shows.

Parameters:
- `item_id` (string, required)

## update_kanban

Change a Kanban board: its title and description; its connections (sources, a whole list: it replaces them); rename columns (on the board and in its tables and sheets: a select's choice, a text field's values, a sheet column's cells); its columns (a whole list in order: reorders them, adds empty ones, removes empty ones); move cards (to a column, before a card or last — this writes the column into the card's record or row); add cards (a record in the table or a row under the sheet's last, in a column); change a card's fields; delete cards (the record from the database, the row from the sheet — only when the person asked for it). Changes apply in that order. You can also change the database or sheet with their own tools: the board shows it.

Parameters:
- `item_id` (string, required)
- `title` (string)
- `description` (string)
- `sources` (object[])
- `columns` (string[])
- `move_cards` (object[])
- `add_cards` (object[])
- `change_cards` (object[])
- `rename_columns` (object[]): Columns renamed: { "from": "Doing", "to": "In progress" }. A person field's columns are people and keep their names.
- `delete_cards` (string[]): Cards deleted with their record or row. Deleting can't be undone from the board; move a card to a "Won't do" or "Archived" column to keep it.

## render_kanban

See a Kanban board as people do: a screenshot of every column with its cards, plus checks (cards with no column or no title, a connection that broke) and errors the page hit.

Parameters:
- `item_id` (string, required)
