Skip to main content

Zu built-in tools: web_search, http_fetch, html_parse, 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.mdRecipe: 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zu_tools-0.2.0.tar.gz (40.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zu_tools-0.2.0-py3-none-any.whl (34.8 kB view details)

Uploaded Python 3

File details

Details for the file zu_tools-0.2.0.tar.gz.

File metadata

  • Download URL: zu_tools-0.2.0.tar.gz
  • Upload date:
  • Size: 40.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for zu_tools-0.2.0.tar.gz
Algorithm Hash digest
SHA256 ea1b49fc805db5ad9b4ed09ecba787acd41e59b146cf0b7303aedcc2363caa24
MD5 6ea0e8db0f3eb828c174029f7c720cab
BLAKE2b-256 af47cc3a90116fe440be022a6383796390f84a5153c571d2c4065b2541683aa1

See more details on using hashes here.

File details

Details for the file zu_tools-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: zu_tools-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 34.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for zu_tools-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3ba14191d967996aa8d03bc44a23e741b8495a1c633756d35c088ea74f950da2
MD5 cf1267f8360f110633d3a9c272fa94f1
BLAKE2b-256 6fd97ee0a409cbaa0dfb687213bef390ac8abe040a183c8fc820a0fcf39e9fb9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page