kodeagent.tools.read_webpage#

kodeagent.tools.read_webpage(url: str, max_length: int = 20000) str[source]#

Fetch and return the main text content from an HTML webpage as clean Markdown. Use this after search_web to read articles, blogs, or documentation. For PDF, DOCX, or XLSX files, use extract_as_markdown tool instead.

Parameters:
  • url – The complete URL of the webpage (must start with http:// or https://).

  • max_length – Maximum characters to return (default 20000).

Returns:

Clean webpage content as Markdown text, or an error message.