Skip to content

Commit 4242593

Browse files
authored
Properly escape tool description to avoid malformed Markup object (#408)
1 parent 75e956f commit 4242593

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shell/AIShell.Kernel/Host.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ internal void RenderMcpToolCallRequest(McpTool tool, string jsonArgs)
580580
581581
[bold]Run [olive]{tool.OriginalName}[/] from [olive]{tool.ServerName}[/] (MCP server)[/]
582582
583-
{tool.Description}
583+
{tool.Description.EscapeMarkup()}
584584
585585
Input:{(hasArgs ? string.Empty : " <none>")}
586586
""");

0 commit comments

Comments
 (0)