Web search

fx can search the public web for current information and return an answer with links to its sources. Web search needs AI Gateway, which searches with Exa. With a ChatGPT or Grok subscription or a custom connection, fx can't search the web, but it can still read a URL with web_fetch.

Ask fx to search when an answer depends on recent information or you want sources:

$fx ask "What changed in the latest Zig release? Use official sources."

Search or fetch

ToolUse
web_searchResearch a question across public sources.
web_fetchRead a public URL you provide.

Ask for official sources when they matter. If you already know the page, include its URL so fx can read it directly.

Both tools access public pages only. They cannot sign in, click controls, or read private pages. web_fetch refuses addresses on your machine or local network, such as localhost, and URLs that contain a username or password.

AI Gateway runs each search, so fx can't ask before one. A web_search permission rule set to ask or deny turns web search off instead, except in full-access mode.

Data and privacy

Search queries and fetched URLs leave your machine. fx records the activity in the local session, and searches may add cost. See Data and privacy and Usage and costs.