Read Database Cells
read_database_cellsRetrieve row titles and database cell values from an AFFiNE database block, including plain text and formatting-preserving rich-text data, with optional row and column filters.
Instructions
Read row titles and database cell values from an AFFiNE database block. Rich-text titles and cells include both plain values and formatting-preserving deltas.
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>"
},
"name": "read_database_cells"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| docId | Yes | Document ID containing the database | |
| columns | No | Optional column name or ID filter. | |
| rowBlockIds | No | Optional row block ID filter. Omit to return all rows. | |
| workspaceId | No | Workspace ID (optional if default set) | |
| databaseBlockId | Yes | Block ID of the affine:database block |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| code | No | ||
| rows | No | ||
| error | No | ||
| details | No | ||
| causeCode | No | ||
| retryable | No | ||
| recoveryGuidance | No |