fix: tweak websearch tool description date info to avoid cache busts (#13559)

This commit is contained in:
Aiden Cline
2026-02-13 23:59:10 -06:00
committed by GitHub
parent 1e25df21a2
commit 179c40749d
2 changed files with 3 additions and 3 deletions

View File

@@ -40,7 +40,7 @@ interface McpSearchResponse {
export const WebSearchTool = Tool.define("websearch", async () => {
return {
get description() {
return DESCRIPTION.replace("{{date}}", new Date().toISOString().slice(0, 10))
return DESCRIPTION.replace("{{year}}", new Date().getFullYear().toString())
},
parameters: z.object({
query: z.string().describe("Websearch query"),