Move Document in Sidebar
move_docMoves a document to a new parent in the AFFiNE sidebar, validating the destination link and rejecting cycles before removing the old link, with explicit partial-outcome reporting.
Instructions
Move a doc in the AFFiNE sidebar. The destination link is validated and added before the optional source link is removed, cycles are rejected, and partial outcomes are reported explicitly.
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>",
"toParentDocId": "<toParentDocId>"
},
"name": "move_doc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| docId | Yes | The doc to move. | |
| workspaceId | No | ||
| toParentDocId | Yes | The new parent doc that will contain the embed. | |
| fromParentDocId | No | The current parent doc to remove the embed from. If omitted, only adds to new parent. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| code | No | ||
| kind | No | ||
| docId | No | ||
| error | No | ||
| moved | No | ||
| details | No | ||
| causeCode | No | ||
| retryable | No | ||
| workspaceId | No | ||
| toParentDocId | No | ||
| recoveryGuidance | No | ||
| removedFromParent | No |