Extensions
Built-in tools API
Zagros ships a large library of pure utility functions. The same functions power the launcher's tool families (Tab opens the whole family for what you typed) and are available to extensions as modules, with no permission needed.
| Module | What it covers | Functions |
|---|---|---|
| undefined | AES, ChaCha20, RSA, Ed25519, XOR and classic ciphers, each with a decrypt counterpart. | 76 |
| undefined | Parse CSV and TSV into rows or dicts, auto-detect the delimiter, and write rows back. | 3 |
| undefined | Parse, convert and calculate dates, times, time zones, durations and cron schedules. | 66 |
| undefined | Base16/32/58/62/64/85 and more, charsets, URL, HTML, punycode, escape and unescape, JWT decode. | 117 |
| undefined | Pull emails, URLs, domains, IPs, numbers, phone numbers, dates and more out of any text. | 62 |
| undefined | Digests (MD5, SHA-1/2/3, BLAKE, CRC, Adler, FNV, xxHash), HMAC, PBKDF2, bcrypt, scrypt, Argon2, TOTP. | 112 |
| undefined | Parse HTML, select elements with CSS selectors, extract text and attributes. | 5 |
| undefined | Decode JSON Web Tokens, and sign or verify them (HS, RS, ES and EdDSA). | 4 |
| undefined | Work on multi-line text: sort, unique, filter, join, columns, CSV and list conversions. | 60 |
| undefined | An expression evaluator, percentages, statistics, algebra, geometry and finance helpers. | 116 |
| undefined | CIDR and subnet calculators, IP and MAC tools, ports, HTTP status, MIME types, URLs and domains. | 92 |
| undefined | Base conversion, the hex and binary calculator, bit operations, IEEE 754, roman numerals, number words, primes and checksums. | 111 |
| undefined | Join, split, clean and relate file paths in Windows or POSIX flavour, without touching the disk. | 13 |
| undefined | Random numbers, dice, strings, passwords, passphrases, colors and picks, with optional seeds. | 55 |
| undefined | Test, match, replace and explain regular expressions (Go RE2 syntax). | 25 |
| undefined | Render text from a safe subset of Go text/template and a dict. | 2 |
| undefined | Change, measure and analyse strings: case styles, palindromes, lengths, normalisation, similarity, Unicode. | 107 |
| undefined | Parse TOML into dicts and lists, and write values back as TOML. | 3 |
| undefined | Parse, build, join and normalize URLs and query strings as structured values. | 6 |
| undefined | UUID v1-v7, ULID, KSUID, Snowflake, ObjectID, nanoid: generate, parse, convert. | 37 |
| undefined | Parse XML into a tree of dicts, query it with simple paths, and write it back. | 5 |
| undefined | Parse YAML into dicts and lists, and write values back as YAML. | 4 |
python
def on_query(ctx, query): return [item(id = "h", title = hash.sha256(query), action = action_copy(hash.sha256(query)))]Compose them with the host modules: read text with clipboard.get() (needs clipboard.read), transform it with these functions, and write it back with clipboard.set(...) (needs clipboard.write).
The exact signatures are in the API stubs (zagros-stubs/zagros/<module>.pyi); coding agents can also search them through the Zagros MCP server.