@@ -163,6 +163,7 @@ export async function getClientSystemToolPreviewNode({
163163 ] ;
164164 const isWorkflowTool = ! ! toolDetail . associatedPluginId ;
165165 const toolConfigSource = isDebugToolSource ( toolSource ) ? toolSource : undefined ;
166+ const toolDescription = toolDetail . toolDescription || toolDetail . intro ;
166167
167168 return {
168169 id : getNanoid ( ) ,
@@ -176,7 +177,7 @@ export async function getClientSystemToolPreviewNode({
176177 avatar : toolDetail . avatar ,
177178 name : toolDetail . name ,
178179 intro : toolDetail . intro ,
179- toolDescription : toolDetail . toolDescription ,
180+ toolDescription,
180181 courseUrl : toolDetail . courseUrl ,
181182 readmeUrl : toolDetail . readmeUrl ,
182183 userGuide : toolDetail . userGuide ?? undefined ,
@@ -215,7 +216,7 @@ export async function getClientSystemToolPreviewNode({
215216 ...( toolConfigSource ? { source : toolConfigSource } : { } ) ,
216217 toolList :
217218 toolDetail . children ?. map ( ( child ) => ( {
218- description : child . description ?? '' ,
219+ description : child . toolDescription || child . description || '' ,
219220 name : child . name ,
220221 toolId : child . id
221222 } ) ) ?? [ ]
@@ -355,6 +356,8 @@ export async function getClientToolPreviewNode({
355356 avatar : item . avatar ,
356357 id : appId ,
357358 name : tool . name ,
359+ intro : tool . description ,
360+ toolDescription : tool . description ,
358361 templateType : FlowNodeTemplateTypeEnum . tools ,
359362 workflow : {
360363 nodes : [
@@ -401,6 +404,8 @@ export async function getClientToolPreviewNode({
401404 avatar : item . avatar ,
402405 id : appId ,
403406 name : tool . name ,
407+ intro : tool . description ,
408+ toolDescription : tool . description ,
404409 templateType : FlowNodeTemplateTypeEnum . tools ,
405410 workflow : {
406411 nodes : [
@@ -435,6 +440,8 @@ export async function getClientToolPreviewNode({
435440 inputs : FlowNodeInputItemType [ ] ;
436441 outputs : FlowNodeOutputItemType [ ] ;
437442 toolConfig ?: NodeToolConfigType ;
443+ intro ?: string ;
444+ toolDescription ?: string ;
438445 showSourceHandle ?: boolean ;
439446 showTargetHandle ?: boolean ;
440447 } ;
0 commit comments