fix tools name
This commit is contained in:
@@ -111,7 +111,7 @@ function buildServer() {
|
|||||||
);
|
);
|
||||||
|
|
||||||
server.tool(
|
server.tool(
|
||||||
"generate_image",
|
"image-gen",
|
||||||
"Generate an image from a prompt and return the image URL. Optionally specify size.",
|
"Generate an image from a prompt and return the image URL. Optionally specify size.",
|
||||||
{
|
{
|
||||||
prompt: z
|
prompt: z
|
||||||
|
|||||||
@@ -247,7 +247,7 @@ function buildServer({ publicBaseUrl }) {
|
|||||||
|
|
||||||
// ---------- 工具 1:generate_video ----------
|
// ---------- 工具 1:generate_video ----------
|
||||||
server.tool(
|
server.tool(
|
||||||
"generate_video",
|
"video-gen",
|
||||||
`Submit a video generation task (text-to-video or image-to-video).
|
`Submit a video generation task (text-to-video or image-to-video).
|
||||||
Returns the task_id immediately; poll the result later with query_video.
|
Returns the task_id immediately; poll the result later with query_video.
|
||||||
Provide prompt and/or image_url (at least one is required).
|
Provide prompt and/or image_url (at least one is required).
|
||||||
@@ -271,7 +271,7 @@ Uploaded files live in container temp storage and are discarded on restart — d
|
|||||||
.url()
|
.url()
|
||||||
.optional()
|
.optional()
|
||||||
.describe(
|
.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."
|
"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
|
size: z
|
||||||
.string()
|
.string()
|
||||||
|
|||||||
Reference in New Issue
Block a user