diff --git a/packages/core/src/tools/web-fetch.ts b/packages/core/src/tools/web-fetch.ts index 07a5110a1b..045995315e 100644 --- a/packages/core/src/tools/web-fetch.ts +++ b/packages/core/src/tools/web-fetch.ts @@ -206,7 +206,7 @@ class WebFetchToolInvocation extends BaseToolInvocation< } // Per-URL content budget is the total budget divided by number of URLs - textContent = textContent.substring(0, MAX_CONTENT_LENGTH); + textContent = textContent.substring(0, perUrlBudget); return { content: textContent }; }