Skip to content

Commit 2ba1198

Browse files
docs: Add usage hints to tool description
1 parent 5d1e995 commit 2ba1198

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/tools/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ C-->D;.`)
2525
outputType: z
2626
.enum(["base64", "svg", "mermaid", "file", "svg_url", "png_url"])
2727
.describe(
28-
"The output type of the diagram. Can be 'base64', 'svg', 'mermaid', 'file', 'svg_url', or 'png_url'. Default is 'base64'. 'base64' returns PNG image as base64 encoded string. 'file' saves the PNG image to disk. The *_url options return public mermaid.ink links for remote-friendly sharing.",
28+
"The output type of the diagram. Default is 'base64'. Recommended: 'file' (saves PNG to disk for easy viewing). 'base64' returns PNG as a base64 encoded string. 'svg' returns SVG markup. 'mermaid' returns the raw Mermaid syntax. 'svg_url' and 'png_url' return public mermaid.ink links for sharing.",
2929
)
3030
.optional()
3131
.default("base64"),
@@ -34,6 +34,6 @@ C-->D;.`)
3434
export const tool = {
3535
name: "generate_mermaid_diagram",
3636
description:
37-
"Generate mermaid diagram and chart with mermaid syntax dynamically. Mermaid is a JavaScript based diagramming and charting tool that uses Markdown-inspired text definitions and a renderer to create and modify complex diagrams. The main purpose of Mermaid is to help documentation catch up with development.",
37+
'Generate mermaid diagram and chart with mermaid syntax dynamically. Mermaid is a JavaScript based diagramming and charting tool that uses Markdown-inspired text definitions and a renderer to create and modify complex diagrams. Syntax tips: quote labels containing special characters, e.g. B["Label text"], and use <br/> for line breaks.',
3838
inputSchema: zodToJsonSchema(schema),
3939
};

0 commit comments

Comments
 (0)