← All toolsWeb & Researchweb_searchAll editions

FETCH_WEBPAGE_JS

Fetch a webpage with full JavaScript rendering (requires Playwright). Falls back to normal fetch if Playwright is not installed.

Parameters

NameTypeRequiredDescription
urlstringyesURL to fetch with JS rendering
max_charsintegerMaximum characters to return (default 15000)
wait_msintegerMilliseconds to wait after page load for JS to settle (default 2000)

How to use it

You normally trigger this by describing what you want in chat — the agent selects FETCH_WEBPAGE_JS automatically. For example:

Try saying
“use web search to fetch …”

In a workflow

As a step in a multi-step workflow DAG:

json
{
  "id": "s1",
  "agent": "web_search",
  "action": "FETCH_WEBPAGE_JS",
  "args": {
    "url": "https://example.com",
    "max_chars": 5,
    "wait_ms": 1
  },
  "depends_on": [],
  "outputs": []
}

Direct call

For scripting, call it directly via POST /execute_tool. Every tool returns { success, message, data }.

bash
curl -X POST http://127.0.0.1:8000/execute_tool \
  -H "Content-Type: application/json" \
  -d '{"tool_name":"FETCH_WEBPAGE_JS","args":{"url":"https://example.com","max_chars":5,"wait_ms":1}}'

Part of the web_search plugin. Browse the full Plugin & Tool Catalog or the relevant feature guide.