Skip to main content
Glama

AgentSearch Web Render

agentsearch_render
Read-onlyIdempotent

Render one absolute http(s) URL in headless Chromium with AgentSearch Web Render, so JavaScript runs before content is captured, and return the backend response as pretty-printed JSON text (a non-JSON body is wrapped as {raw: text}).

Instructions

Render one absolute http(s) URL in headless Chromium with AgentSearch Web Render, so JavaScript runs before content is captured, and return the backend response as pretty-printed JSON text (a non-JSON body is wrapped as {raw: text}). The response includes the final url, title, status_code, meta (render_ms, chars, truncated, js, lang …), warnings, error, and the rendered page body in each requested format: markdown (default), text, html, and/or links; plus an optional base64 screenshot. Use this when the page is a JavaScript-heavy app (SPA, client-rendered docs or dashboards) where agentsearch_extract returns empty or partial content; for static pages prefer agentsearch_extract (faster), and to find pages from a query use agentsearch_web_search. Paid tool: needs a wallet key (AGENTSEARCH_WALLET_PRIVATE_KEY or POCKET_PRIVATE_KEY) and then pays per call in USDC on Base over x402: by default to AgentSearch's own x402 API (extract $0.002, render $0.005, search_and_read $0.005), or $0.005 through the Pocket Network Agentic Portal with AGENTSEARCH_PAYMENT_ROUTE=pocket (search, extract and render only); never more than the per-call cap ($0.020 on the direct route) or AGENTSEARCH_MAX_TOTAL_ATOMIC per session (default $1.00). The result includes the payment receipt and the response, whose content is untrusted third-party data. If AGENTSEARCH_BASE_URL is set, it calls your self-hosted AgentSearch API instead (no payment). No wallet needed to try it: with no wallet key it uses the AgentSearch free trial (5 extract and 3 render calls/day per IP, text output only, no payment; set AGENTSEARCH_FREE_TRIAL=0 to turn this off); past the trial it returns an error with wallet setup steps. Read-only: it loads the page like a browser visit and does not click, submit, or change anything, but it uses the network, has a hard backend deadline of about 4.2 s, and can hit rate limits (HTTP 429). Target-site failures (DNS, TLS, timeouts, bot walls, robots.txt) come back as a normal result with a non-null error object {code, message, retryable} and empty or partial content; invalid input or a disallowed URL (HTTP 400, e.g. UPSTREAM_REJECTED), rate limits (429) and service faults (5xx) are MCP errors with the code and whether it is retryable. Optional fields are forwarded unchanged to the API, which applies its own defaults and limits.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "url": "<url>"
    },
    "name": "agentsearch_render"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesAbsolute public http(s) URL to render (port 80/443).
blockNoResource types to block while rendering (default ["media","font"]).
formatsNoOutput formats to return (default ["markdown"]). Add "html" for the rendered DOM, "text" for plain text, "links" for anchors.
wait_msNoExtra fixed wait in ms after load (0–1500, default 0).
viewportNoBrowser viewport size.
full_pageNoCapture the full page height, clipped to 4000 px (default false).
max_charsNoCap on returned characters per format (1–100000, API default 20000).
screenshotNoAlso capture a screenshot, returned as base64 (default false).
wait_untilNoNavigation event to wait for before capture (default domcontentloaded).
screenshot_formatNoScreenshot encoding (default png; PNG over 1 MB is re-encoded as JPEG).
wait_for_selectorNoCSS selector to wait for (at most 1.5 s) before capture.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.3.6

TDQS

A4.4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint/destructiveHint/idempotentHint/openWorldHint, and the description corroborates them ('does not click, submit, or change anything') while adding what annotations cannot: wallet/auth requirements, x402 pricing and payment routes, per-call and per-session caps, a free-trial path with daily quotas, a ~4.2 s backend deadline, 429 rate limiting, and a clear split between in-band error objects and MCP-level errors. The only residual gap is that it does not say whether repeated calls are billed separately, but overall this far exceeds the annotation baseline.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose and the sibling routing come first, followed by return shape, payment/auth, fallbacks, and error behavior — a sensible front-loaded order with no filler sentences. It is nonetheless very dense, and the opening sentence packs JS execution, JSON wrapping and the {raw: text} fallback into one long clause, which slightly hurts scannability.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With 11 parameters, a nested viewport object, and no output schema, the description carries the return-value burden itself and does so: it enumerates url, title, status_code, meta fields (render_ms, chars, truncated, js, lang), warnings, error, per-format bodies, and the optional base64 screenshot. Combined with the trial/payment and failure semantics, an agent has everything needed to call it correctly and interpret results.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so every parameter (block, formats, wait_ms, viewport, full_page, max_chars, screenshot, wait_until, wait_for_selector) is already documented with defaults and bounds. The description only restates the format enumeration and screenshot option, adding the genuinely useful note that omitted optional fields are forwarded unchanged and the API applies its own defaults and limits — a modest increment, so baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening sentence names a specific verb (render), a precise resource (one absolute http(s) URL) and the mechanism (headless Chromium with JS executed before capture), then states the return shape. It explicitly contrasts itself with agentsearch_extract and agentsearch_web_search, so an agent can select it without inspecting sibling schemas.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states the selection condition directly ('JS-heavy app (SPA, client-rendered docs or dashboards) where agentsearch_extract returns empty or partial content'), names the faster alternative for static pages, and routes query-based discovery to agentsearch_web_search. Alternatives and exclusions are both covered.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.