← All toolsWeb & Researchweb_searchAll editions

FETCH_WEBPAGE

Fetch and extract readable text from a URL. Cached for 5 minutes to avoid duplicate fetches.

Parameters

NameTypeRequiredDescription
urlstringyesThe URL to fetch content from
max_charsintegerMaximum characters to return (default 15000)

How to use it

You normally trigger this by describing what you want in chat — the agent selects FETCH_WEBPAGE 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",
  "args": {
    "url": "https://example.com",
    "max_chars": 5
  },
  "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","args":{"url":"https://example.com","max_chars":5}}'

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