mirror of
https://github.com/larksuite/cli.git
synced 2026-07-06 16:18:05 +08:00
fix(docs): normalize board_tokens in +create response for mermaid/whiteboard content (#10)
+update already calls normalizeDocsUpdateResult to surface board_tokens when markdown contains mermaid/plantuml/whiteboard blocks. +create was missing the same call, so callers could not know how many whiteboards were created or retrieve their tokens. One-line fix: call normalizeDocsUpdateResult after CallMCPTool in DocsCreate.Execute.
This commit is contained in:
@@ -83,6 +83,7 @@ var DocsCreate = common.Shortcut{
|
||||
return err
|
||||
}
|
||||
|
||||
normalizeDocsUpdateResult(result, runtime.Str("markdown"))
|
||||
runtime.Out(result, nil)
|
||||
return nil
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user