Update Document Title
update_doc_titleRename an AFFiNE document by updating both its sidebar title and internal page block title to keep workspace metadata and content consistent.
Instructions
Rename a document — updates both the sidebar title (workspace metadata) and the doc's internal page block title.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| docId | Yes | The doc to rename. | |
| title | Yes | New title. | |
| workspaceId | No | ||
| 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 | ||
| kind | No | ||
| docId | No | ||
| error | No | ||
| title | No | ||
| details | No | ||
| updated | No | ||
| causeCode | No | ||
| retryable | No | ||
| workspaceId | No | ||
| recoveryGuidance | No |