update_document
Rename a document, replace its body content, or move it under another document or notebook in SiYuan by providing its ID and optional title, content, or parent ID.
Instructions
Rename, replace content, and/or move a document. Provide title to rename, content to replace body, parentId to move under another doc.
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": {
"id": "<id>"
},
"name": "update_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Document block ID | |
| title | No | New title (rename) | |
| content | No | New markdown content (replaces entire body) | |
| parentId | No | Move doc under this parent document ID (or notebook ID to move to root) |