Zu built-in tools: web_search, http_fetch, html_parse, pdf_extract, render_dom, browser
Project description
zu-tools
Tools — the Tool port: actions the model may take. A tool declares its
tier (the escalation ladder), its JSON schema, a prompt_fragment, and its
capability envelope (capabilities + egress) so its blast radius is
visible in its own code and the gate can bound it.
Registered plugins (zu.tools)
| Name | Class | Tier | Envelope |
|---|---|---|---|
http_fetch |
HttpFetch |
1 | CAP_NET, open egress — a general web fetcher with a host-level SSRF guard (net.check_url). |
html_parse |
HtmlParse |
1 | none — pure CPU on HTML it is handed (least privilege). |
render_dom |
RenderDom |
2 | CAP_NET + CAP_SANDBOX, open egress — renders a URL in a headless browser inside a SandboxBackend (unlocked only after a detector escalates off tier 1). |
The tier ladder
http_fetch and html_parse are tier 1 (cheap, offered from the start).
render_dom is tier 2 — the escalation target when a JavaScript page defeats
tier 1. The loop only offers tools at or below the current tier; a detector
ESCALATE climbs the ladder. The browser runs in a sandbox behind a seam tests
can freeze (a saved rendered page), so the escalation arc is proven offline.
Extend
Implement the Tool shape (see AGENTS.md → Recipe: add a
tool), declare a minimal capabilities/egress, register under zu.tools, and
add a deterministic test (use an httpx.MockTransport to fixture the network).
Tests
uv run pytest packages/zu-tools — offline; the network is fixtured.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file zu_tools-0.7.0.tar.gz.
File metadata
- Download URL: zu_tools-0.7.0.tar.gz
- Upload date:
- Size: 74.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a383d3847d407648e4b4809af62ae7c977ba9aeda74825a27edd79e072cbafe
|
|
| MD5 |
2564d19d45b3c309841f395c75457a9c
|
|
| BLAKE2b-256 |
6ec41a7fe1bdb20d8b6bc2419b7583a917682e5709f291106f7f357d53bad423
|
File details
Details for the file zu_tools-0.7.0-py3-none-any.whl.
File metadata
- Download URL: zu_tools-0.7.0-py3-none-any.whl
- Upload date:
- Size: 60.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0c31fd3d9ee4380e9b57774c29b8a6e0a3b55b34b582122ad28f8e434088b93e
|
|
| MD5 |
7627a968425e722d1fa5bfda897eafdd
|
|
| BLAKE2b-256 |
338c1eb0a70be80021f998b038d84e8ceabd0b5c96f03b1b6449c139eccfbaf1
|