fix tools name

This commit is contained in:
2026-09-04 22:31:25 +08:00
parent 88120d61c1
commit dab3732b50
2 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -111,7 +111,7 @@ function buildServer() {
);
server.tool(
"generate_image",
"image-gen",
"Generate an image from a prompt and return the image URL. Optionally specify size.",
{
prompt: z
+7 -7
View File
@@ -247,7 +247,7 @@ function buildServer({ publicBaseUrl }) {
// ---------- 工具 1:generate_video ----------
server.tool(
"generate_video",
"video-gen",
`Submit a video generation task (text-to-video or image-to-video).
Returns the task_id immediately; poll the result later with query_video.
Provide prompt and/or image_url (at least one is required).
@@ -267,12 +267,12 @@ Uploaded files live in container temp storage and are discarded on restart — d
"Video text description (max 512 chars). At least one of prompt / image_url is required."
),
image_url: z
.string()
.url()
.optional()
.describe(
"Reference image URL for image-to-video. Single URL only. Image <= 5MB, .png/.jpeg/.jpg. Use the /upload endpoint to get a URL from a local file."
),
.string()
.url()
.optional()
.describe(
"Reference image URL string for image-to-video. Image <= 5MB, .png/.jpeg/.jpg. Use the /upload endpoint to get a URL from a local file."
),
size: z
.string()
.optional()