Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Web Tools

fetch_url

Fetch a web page and return its content as markdown text.

Permission: Read

Parameters

NameTypeRequiredDescription
urlstringyesThe URL to fetch

Behavior

  • Fetches the page via HTTP GET.
  • Converts HTML to Markdown using fast_html2md.
  • Truncates the output to 50,000 characters if the page is very large.
  • HTTP timeout: 30 seconds.
  • Returns the HTTP status code as an error if the request fails (e.g., 404, 500).

Examples

agsh [r] > fetch the Rust homepage and summarize what's new
agsh [r] > read the documentation at https://docs.rs/tokio/latest/tokio/

Search the web and return results. Supports multiple search engines.

Permission: Read

Parameters

NameTypeRequiredDescription
querystringyesThe search query
enginestringnoSearch engine to use (default: duckduckgo)

Search Engines

ValueEngine
duckduckgoDuckDuckGo (default)
googleGoogle Search
bingBing Search

Behavior

  • Returns up to 10 results per search.
  • Each result includes the title, URL, and a snippet (when available).
  • Uses HTML scraping (no API keys required for any search engine).
  • HTTP timeout: 15 seconds.

Examples

agsh [r] > search the web for "rust async tutorial"
agsh [r] > search google for the latest news about WebAssembly
agsh [r] > use bing to search for "tokio vs async-std comparison"