Langcli logoAI Coding Assistant

Web Search / Web Fetch

This article describes how to use the Web Search tool and the Web Fetch tool

Langcli comes with two built-in tools: web_search and web_fetch. To use these tools, you need to use the LangRouter api-key in Langcli, and your LangRouter account must have sufficient balance. Each web search (web_search) costs $0.006, and each web page read via web_fetch costs $0.001.

Including terms like "web search" or "WebSearch tool" in your prompt will trigger Langcli to use the web search tool. Here are some examples:

  • Please web search for the latest news about 2026 Iran war
  • Please use the WebSearch tool to find news about Trump

Web Fetch

Including terms like "read webpage" or "WebFetch tool" in your prompt will trigger Langcli to use the web fetch tool to scrape web pages and extract markdown content. Here are some examples:

Note: If necessary, after calling the web search tool, Langcli will automatically call the WebFetch tool to read the webpage content corresponding to the URLs in the search results.

Last Updated

Table of Contents