Drop Search-Result Blocks the Agent Already Digested in Code

Cuts output tokens on every research turn where Claude filters search results in code before answering; the more raw search content it pulls, the larger the cut Advanced 2 min read

When Claude uses dynamic filtering to process web-search results in code, set response_inclusion: excluded so the raw search blocks it already consumed are dropped from the API response instead of echoed back as output tokens.

๐Ÿ”’ Pro tip ยท Advanced

Unlock this tip โ€” and 56 more

This is one of 57 advanced, fact-checked tactics reserved for Pro. Get the full 79-tip library, a searchable archive, and a new tip every morning. Free for 7 days, then $9/mo.

Prefer to browse? The 22 Beginner tips are free forever.