Web and notebook tools
The chat has four tools beyond files and the shell: web_fetch and web_search reach the web, and notebook_read and notebook_edit work on Jupyter notebooks. anu -p and --agent runs do not have them.
web_fetch
web_fetch reads one page (http or https). HTML comes as markdown: headings, links, lists and code are kept, and scripts, styles and tags are dropped. Text, JSON and XML come as they are. A long page comes in parts: the model calls again with the offset the last part gives. Pages are kept for 15 minutes, so reading the next part fetches nothing.
A redirect to the same host is followed. A redirect to another host is not: the model is told the new URL and must call again, so a WebFetch(domain:…) rule still decides.
web_search
web_search returns titles, URLs and snippets; the model reads a result with web_fetch. It can keep to some domains (allowed_domains) or leave some out (blocked_domains). The engine comes from the environment:
| Set | Engine |
|---|---|
BRAVE_API_KEY (or BRAVE_SEARCH_API_KEY) | Brave Search API |
TAVILY_API_KEY | Tavily |
SEARXNG_URL (or ANU_SEARXNG_URL) | your SearXNG instance (its JSON format must be on) |
| none of them | DuckDuckGo's HTML results page, no key needed |
When more than one is set, the first in this list wins; ANU_SEARCH=brave|tavily|searxng|duckduckgo picks one. Keys go in the environment or in settings (anu config set env.TAVILY_API_KEY …); parmanu never prints them.
Permissions
The web tools only read, but they ask first, as in Claude Code: a page can carry anything, and a URL can carry what the model read. "Don't ask again" on a fetch allows that site. Rules:
{
"permissions": {
"allow": ["WebFetch(domain:docs.python.org)", "WebFetch(https://github.com/myorg/*)", "WebSearch"],
"deny": ["WebFetch(domain:internal.example)"]
}
}domain:x.dev covers x.dev and its subdomains; domain:*.x.dev only the subdomains. Any other pattern is a wildcard over the whole URL. ANU_WEB=0 takes both tools away.
Notebooks
notebook_read shows every cell with its number (from 0), type, id, source and outputs. Text outputs are shown, errors as their name, message and traceback, and images by their type. notebook_edit changes one cell, named by cell_id or cell_number:
| edit_mode | Does |
|---|---|
replace (default) | sets the source (and cell_type, if given); a code cell's outputs are cleared |
insert | adds a code or markdown cell after the one named, or first when none is |
delete | removes the cell |
The file keeps its indent and line endings, so the diff shows the cell alone. Rules name it NotebookEdit(path) or Edit(path); acceptEdits mode lets it run. Subagent files may list WebFetch, WebSearch and NotebookEdit, and the explore agent has web_fetch, web_search and notebook_read.
This page is built from docs/web.md in parmanu 0.4.14.