Update Database Row
update_database_rowBatch update multiple cells in an existing AFFiNE database row. Use to edit field values or the row title, and optionally link the row to a document.
Instructions
Batch update multiple cells on an existing AFFiNE database row. Include title in the cells map to update the Kanban row title.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"docId": "<docId>",
"databaseBlockId": "<databaseBlockId>",
"rowBlockId": "<rowBlockId>",
"cells": "<cells>"
},
"name": "update_database_row"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cells | Yes | Map of column name (or column ID) to new cell value. Use `title` for the built-in row title. | |
| docId | Yes | Document ID containing the database | |
| rowBlockId | Yes | Row paragraph block ID | |
| linkedDocId | No | Link this row to an existing doc by ID. The row will open the linked doc in center peek when clicked. | |
| workspaceId | No | Workspace ID (optional if default set) | |
| createOption | No | For select and multi-select columns, create the option label if it does not exist (default true) | |
| databaseBlockId | Yes | Block ID of the affine:database block |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| updated | Yes | ||
| cellCount | Yes | ||
| rowBlockId | Yes |