Codumentor logo Codumentor

Web Retrieve

Gives the agent a web_retrieve tool to fetch web pages (and some documents) and, optionally, analyze them.

HTML is converted to text; PDF, DOCX, and XLSX are extracted when possible. Only http/https URLs are allowed.

Configuration

plugins:
  - module: codumentor.plugins.webretrieve
    class: WebRetrievePlugin
    args:
      enabled: true
      timeout: 30
      max_urls: 5
      max_chars_per_url: 30000
      max_content_length: 500000
      target_agents: "main"
      js_rendering_mode: "default"
ParameterDefaultDescription
enabledtrueEnable the plugin.
timeout30Request timeout in seconds.
max_urls5Maximum URLs per call.
max_chars_per_url30000Maximum characters returned per URL.
max_content_length500000Maximum raw response size per URL, in bytes.
target_agents"main""main", "subagent", or "all".
js_rendering_mode"default"How JavaScript-rendered pages are handled (see below).
enable_js_renderingDeprecated. trueoptional, falsedisabled.

JavaScript rendering

Needs a Chromium-family browser on the host (Chrome, Edge, or Chromium). If the mode is not disabled and no browser is found, the plugin logs install instructions and falls back to disabled. Set CODUMENTOR_CHROME_PATH if the browser is not on the usual path.

ModeBehavior
defaultRender JS unless the agent sets render_js=false.
optionalStatic fetch unless the agent sets render_js=true. Incomplete-looking pages get a hint to retry with JS.
disabledNever render JS; no render_js argument.

Users can override the mode (and turn the plugin off) in Settings → Extensions → Web Retrieve. A personal setting wins over YAML.

Tool: web_retrieve

ArgumentRequiredDescription
urlsyesOne URL or a list (capped by max_urls).
promptnoIf set, run agentic analysis of the pages.
render_jsnoPresent when mode is default or optional.

Truncated simple-mode results suggest calling again with a prompt. Successful fetches are cached for 5 minutes so repeated hits on the same URL stay consistent.

Notes