



























@@ -94,7 +94,8 @@ const MusicGenerateToolSchema = Type.Object({
9494prompt: Type.Optional(Type.String({ description: "Music generation prompt." })),
9595lyrics: Type.Optional(
9696Type.String({
97-description: "Optional lyrics to guide sung output when the provider supports it.",
97+description:
98+"Exact sung lyrics only when the user supplies lyrics or asks for vocal words. For song/style requests, use prompt instead.",
9899}),
99100),
100101instrumental: Type.Optional(
@@ -600,7 +601,7 @@ export function createMusicGenerateTool(options?: {
600601name: "music_generate",
601602displaySummary: "Generate music",
602603description:
603-'Generate music using configured providers. In session-backed chats, generation runs as a background task; do not call music_generate again for the same request, wait for the completion event, then send the generated attachments through the message tool. Use action="status" to inspect the active task.',
604+'Create actual audio/music tracks from song, jingle, beat, loop, soundtrack, anthem, or instrumental requests. If the user asks to make/generate/create a song or music, call music_generate; do not just write lyrics unless they ask for lyrics/text only. Put style, genre, mood, tempo, instruments, and purpose in prompt. Use lyrics only for exact sung words. In session-backed chats, generation runs as a background task; do not call music_generate again for the same request, wait for the completion event, then send the generated attachments through the message tool. Use action="status" to inspect the active task.',
604605parameters: MusicGenerateToolSchema,
605606execute: async (_toolCallId, rawArgs) => {
606607const args = rawArgs as Record<string, unknown>;
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。