Skip to contents

Tool: Read a Web Page as Markdown

Usage

btw_tool_web_read_url(
  url,
  ...,
  max_wait_for_page_load_s = getOption("btw.max_wait_for_page_load_s", 10)
)

Arguments

url

The URL of the web page to read.

...

Ignored, for future features.

max_wait_for_page_load_s

Maximum time to wait for the page to load, in seconds. Can be set globally using the btw.max_wait_for_page_load_s option.

Examples

if (FALSE) { # rlang::is_installed("chromote") && rlang::is_interactive()
btw_tool_web_read_url("https://www.r-project.org/")
btw_tool_web_read_url(
  "https://posit.co/blog/easy-tool-calls-with-ellmer-and-chatlas/"
)
}