From b5a644588104624ae2f060f170a1f61e91c83a3c Mon Sep 17 00:00:00 2001 From: Louis Walsh Date: Mon, 26 Jan 2026 16:33:39 -0800 Subject: [PATCH] fix: use correct Exa API parameters (urls instead of ids) --- src/agents/tools/web-fetch.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/agents/tools/web-fetch.ts b/src/agents/tools/web-fetch.ts index c57bbee9a..b2c45d4ef 100644 --- a/src/agents/tools/web-fetch.ts +++ b/src/agents/tools/web-fetch.ts @@ -393,11 +393,16 @@ export async function fetchExaContent(params: { status?: number; }> { const body: Record = { - ids: [params.url], + urls: [params.url], }; if (params.contents) { - body.text = { maxCharacters: params.maxChars }; + body.text = { + maxCharacters: params.maxChars, + includeHtmlTags: false, + }; + } else { + body.text = false; } const res = await fetch(EXA_CONTENTS_ENDPOINT, {