fix(webfetch): make format parameter optional with markdown default (#6345)

Co-authored-by: Somair Ansar <somairansar@Somairs-MacBook-Air.local>
This commit is contained in:
samcornor
2025-12-29 21:53:12 +00:00
committed by GitHub
parent c3d8672753
commit fd973d242e
2 changed files with 6 additions and 5 deletions

View File

@@ -15,7 +15,8 @@ export const WebFetchTool = Tool.define("webfetch", {
url: z.string().describe("The URL to fetch content from"),
format: z
.enum(["text", "markdown", "html"])
.describe("The format to return the content in (text, markdown, or html)"),
.default("markdown")
.describe("The format to return the content in (text, markdown, or html). Defaults to markdown."),
timeout: z.number().describe("Optional timeout in seconds (max 120)").optional(),
}),
async execute(params, ctx) {