From c8f3e06ef77fe8670fffe332ffc1e97cf9aaddb4 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Fri, 5 Jun 2026 11:18:00 +0800 Subject: [PATCH] :sparkles: AI Agent https://github.com/siyuan-note/siyuan/issues/17797 Signed-off-by: Daniel <845765@qq.com> --- kernel/mcp/tools/block.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/kernel/mcp/tools/block.go b/kernel/mcp/tools/block.go index d1e77e142..f39268bae 100644 --- a/kernel/mcp/tools/block.go +++ b/kernel/mcp/tools/block.go @@ -178,6 +178,7 @@ func blockInsert(args map[string]interface{}) (CallToolResult, error) { model.PerformTransactions(&transactions) model.FlushTxQueue() + model.AppendPushReloadProtyleEntry(parentID) return CallToolResult{Content: []ContentItem{{Type: "text", Text: "block inserted"}}}, nil } @@ -209,6 +210,7 @@ func blockAppend(args map[string]interface{}) (CallToolResult, error) { model.PerformTransactions(&transactions) model.FlushTxQueue() + model.AppendPushReloadProtyleEntry(parentID) return CallToolResult{Content: []ContentItem{{Type: "text", Text: "block appended"}}}, nil } @@ -240,6 +242,7 @@ func blockPrepend(args map[string]interface{}) (CallToolResult, error) { model.PerformTransactions(&transactions) model.FlushTxQueue() + model.AppendPushReloadProtyleEntry(parentID) return CallToolResult{Content: []ContentItem{{Type: "text", Text: "block prepended"}}}, nil } @@ -271,6 +274,7 @@ func blockUpdate(args map[string]interface{}) (CallToolResult, error) { model.PerformTransactions(&transactions) model.FlushTxQueue() + model.AppendPushReloadProtyleEntry(id) return CallToolResult{Content: []ContentItem{{Type: "text", Text: "block updated"}}}, nil } @@ -289,6 +293,7 @@ func blockDelete(args map[string]interface{}) (CallToolResult, error) { model.PerformTransactions(&transactions) model.FlushTxQueue() + model.AppendPushReloadProtyleEntry(id) return CallToolResult{Content: []ContentItem{{Type: "text", Text: "block deleted: " + id}}}, nil } @@ -333,6 +338,7 @@ func blockMove(args map[string]interface{}) (CallToolResult, error) { model.PerformTransactions(&transactions) model.FlushTxQueue() + model.AppendPushReloadProtyleEntry(id) return CallToolResult{Content: []ContentItem{{Type: "text", Text: "block moved: " + id}}}, nil }