Skip to content

Commit 52877e9

Browse files
authored
chore(js/plugins/mcp): fixes to README.md (#2778)
1 parent 242cab3 commit 52877e9

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

js/plugins/mcp/README.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,12 @@ ai.defineTool(
9494

9595
ai.definePrompt(
9696
{
97-
name: 'happy',
98-
description: 'everybody together now',
97+
name: "happy",
98+
description: "everybody together now",
9999
input: {
100-
schema: z.object({ action: z.string().optional() }),
101-
default: { action: 'clap your hands' },
100+
schema: z.object({
101+
action: z.string().default("clap your hands").optional(),
102+
}),
102103
},
103104
},
104105
`If you're happy and you know it, {{action}}.`

0 commit comments

Comments
 (0)