Built-in Tools¶
For: people who need the exact syntax of a built-in tool. After this page you know every verb, flag and failure message of done, bash, edit, web, mem and agent.
Only done is on by default; the rest are opted in with --tools, Harness(tools=[...]) or a skill. Each section below is generated from the tool's docstring, which is also what the model sees when it runs <tool> --help. For examples of each in use, see Built-in tools.
tether.tools.done¶
tether.tools.bash¶
tether.tools.edit¶
With edit enabled and bash not, a plain shell file write or read runs as edit: echo ok > f, printf 'a\nb' > f and cat > f << 'EOF' ... EOF as edit write f, cat f as edit view f, and >> f as edit append f (echo -e turns \n into a newline, echo -n adds none). edit append <path> adds stdin to the end of a file (created if missing); edit write replaces it. Other shell commands answer that the session has no shell, with a pointer to edit (and, with web on, curl/wget to web fetch); the model cannot enable a tool, so the message does not tell it how. A disabled built-in tool (agent, mem) still names the flags that enable it.
tether.tools.web¶
Zero-config web search (DuckDuckGo Lite + Brave/Tavily/SearXNG env override) and reader.
PrivateAddressError
¶
Bases: PermissionError
Raised when web fetch targets a loopback/private/link-local address (SSRF guard).
HostNotAllowedError
¶
Bases: PermissionError
Raised when web targets a host outside the configured domain allowlist.
host_allowed(host, allow)
¶
Match a host against allowlist entries; IP literals are never allowed by name.
assert_public_url(request)
async
¶
Block fetches that resolve to non-global IPs (localhost, RFC1918, cloud metadata).
Runs as an httpx request hook, so every redirect hop is checked too. Opt out with TETHER_WEB_ALLOW_PRIVATE=1.
html_to_text(raw_html)
¶
Convert raw HTML to compact text, uncut.
extract_main_content(raw_html)
¶
Extract text from
json_view(text, pointer, url, max_chars)
¶
A JSON reply at a JSON Pointer (#/info/version, RFC 6901; -1 is a list's last item).
A value that fits is shown pretty-printed; a bigger one as an outline of its keys or items
with the command that opens one, so a 6 MB API reply is read in two small steps. None when
text is not JSON.
html_to_markdown(raw_html, max_chars=8000, url='<url>')
¶
Convert raw HTML into compact markdown-friendly text.
search_web_backend(query, max_results=5, web_allow=None)
async
¶
Search the web via SearXNG/Brave/Tavily if configured, else DuckDuckGo HTML.
assert_allowed_host(request, allow)
async
¶
Refuse hosts outside the allowlist; runs before the SSRF guard on every redirect hop.
tether.tools.mem¶
tether.tools.agent¶
Always-async multi-agent orchestration and SQLite FTS5 BM25 RAG (agent).
make_agent_tool(store, parent_session_id, default_model, parent_sandbox, skill_loader, worker_spawner, wait_timeout=120.0, parent_tools=None)
¶
parent_tools: the parent's enabled tools (AD-57). A child gets the ones it names that the
parent has, or all of them when it names none of them; None (direct SDK use) leaves tools
as asked.