fetch_to_file
Retrieve web content from a URL and save it to a specified file, with options for raw HTML, cleaned HTML, or Markdown conversion.
Instructions
获取网页内容并保存到文件。 - 如果是 HTML, 则根据 return_content 返回合适的内容, - 如果不是 HTML,但是是 Text 或 Json 内容,则直接保存其内容。 - 如果是其它类型的内容,则返回错误信息。
Input Schema
Name | Required | Description | Default |
---|---|---|---|
file_path | Yes | ||
return_content | No | markdown | |
url | Yes |