Back to Chatgpt On Wechat

web_fetch - Web Fetch

docs/tools/web-fetch.mdx

2.1.0793 B
Original Source

Fetch the content of an HTTP/HTTPS URL. Web pages are extracted as readable text; document files (PDF, Word, Excel, etc.) are downloaded and parsed automatically.

Parameters

ParameterTypeRequiredDescription
urlstringYesHTTP/HTTPS URL (web page or document)

Supported file types

TypeFormats
PDF.pdf
Word.docx
Text.txt, .md, .csv, .log
Spreadsheet.xls, .xlsx
Presentation.ppt, .pptx

Use cases

  • Extract readable text from a web page
  • Download and parse remote documents
  • Inspect API response bodies
<Note> `web_fetch` only retrieves static HTML. For pages that require JavaScript rendering (such as SPAs), use the `browser` tool instead. </Note>