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.
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>",
"title": "<title>"
},
"name": "update_doc_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 |