Update Document Title
update_doc_titleUpdate a document's title in AFFiNE, synchronizing the sidebar entry and the page's internal block title.
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 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| kind | Yes | ||
| docId | Yes | ||
| title | Yes | ||
| updated | Yes | ||
| workspaceId | Yes |