Compose Database From Intent
compose_database_from_intentBuild an AFFiNE task board or issue tracker from declarative intent, with preset schema, kanban view, and optional starter rows.
Instructions
Create a useful AFFiNE database/data-view from declarative intent. Supports task_board and issue_tracker presets with starter schema, kanban view, and optional starter rows.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| docId | Yes | Document ID containing the database | |
| title | No | Optional database title. Defaults to the intent preset title. | |
| intent | Yes | Declarative database intent to compose. | |
| seedRows | No | Optional starter rows. If omitted, the preset starter rows are used. | |
| placement | No | Optional insertion target/position | |
| workspaceId | No | Workspace ID (optional if default set) | |
| expectedRevision | No | Optional read_doc revision of this primary document. Reject stale content before writing. Covers document content, not workspace metadata; requires all writers to share one MCP server. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| code | No | ||
| docId | No | ||
| error | No | ||
| lossy | No | ||
| stats | No | ||
| title | No | ||
| views | No | ||
| intent | No | ||
| columns | No | ||
| details | No | ||
| viewIds | No | ||
| warnings | No | ||
| causeCode | No | ||
| columnIds | No | ||
| retryable | No | ||
| rowBlockIds | No | ||
| workspaceId | No | ||
| primaryViewId | No | ||
| databaseBlockId | No | ||
| recoveryGuidance | No |