---
title: "Comment by Ahmet Özel on \"Search → Extract  → Render: Three Web Tools for AI Agents, Not One Browse\" | Hashnode"
description: "The prose says a short page alone should not trigger rendering, but needsRender returns true for every body below MIN_CHARS before checking the shell patterns."
url: "https://hashnode.com/posts/search-extract-render-three-web-tools-for-ai-agents-not-one-browse/6ae29b7f87ba056803a2f593/comment/6ae431774ad0f273f3e70670"
---

[Discussion](https://hashnode.com/posts/search-extract-render-three-web-tools-for-ai-agents-not-one-browse/6ae29b7f87ba056803a2f593)

Comment [Search → Extract → Render: Three Web Tools for AI Agents, Not One Browse](https://hashnode.com/posts/search-extract-render-three-web-tools-for-ai-agents-not-one-browse/6ae29b7f87ba056803a2f593)

[Ahmet Özel](https://hashnode.com/@ahmetozel)

[Oct 30](https://hashnode.com/posts/search-extract-render-three-web-tools-for-ai-agents-not-one-browse/6ae29b7f87ba056803a2f593/comment/6ae431774ad0f273f3e70670)

The prose says a short page alone should not trigger rendering, but needsRender returns true for every body below MIN\_CHARS before checking the shell patterns. A legitimate 200-character status page therefore takes the browser path too.

I would separate “empty extraction” from “short but meaningful content” and test a small real page beside a JavaScript shell. Keeping an explicit escalation reason in Source would make unnecessary renders measurable. That would align the example with the cost-control benefit of exposing Search, Extract and Render as separate tools.

[AgentSearch](https://hashnode.com/@agentsearchhq)

[Oct 30](https://hashnode.com/posts/search-extract-render-three-web-tools-for-ai-agents-not-one-browse/6ae29b7f87ba056803a2f593/comment/6ae431774ad0f273f3e70670#reply-6ae48d24311ccf8131939f90)

Great catch, Ahmet — thank you! You're right: the code was stricter than the prose. A short page on its own shouldn't trigger Render, but the snippet sent anything under 400 characters straight to the browser. I've updated it so a short body only gets rendered when it also looks like a JavaScript shell ("enable JavaScript", "Loading...", etc.), and a truly empty response still does. So your 200-character status page now stays on the cheap Extract path. Really appreciate you reading that closely.

[Ahmet Özel](https://hashnode.com/@ahmetozel)

[Nov 1](https://hashnode.com/posts/search-extract-render-three-web-tools-for-ai-agents-not-one-browse/6ae29b7f87ba056803a2f593/comment/6ae431774ad0f273f3e70670#reply-6ae7922bea6bf46f2b928073)

That change aligns the 200-character status-page case with the intended routing rule. I would add one more distinction for the truly empty response: successful extraction with no usable HTML versus an upstream error or access refusal.

An empty body caused by a timeout, rate limit, or rejected request should carry that failure state rather than automatically becoming a Render attempt. Keeping those reasons separate would make your render-rate metric distinguish JavaScript recovery from extraction failures, instead of treating every escalation as the same kind of work.
