ZAGROS

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.

ModuleWhat it coversFunctions
undefinedAES, ChaCha20, RSA, Ed25519, XOR and classic ciphers, each with a decrypt counterpart.76
undefinedParse CSV and TSV into rows or dicts, auto-detect the delimiter, and write rows back.3
undefinedParse, convert and calculate dates, times, time zones, durations and cron schedules.66
undefinedBase16/32/58/62/64/85 and more, charsets, URL, HTML, punycode, escape and unescape, JWT decode.117
undefinedPull emails, URLs, domains, IPs, numbers, phone numbers, dates and more out of any text.62
undefinedDigests (MD5, SHA-1/2/3, BLAKE, CRC, Adler, FNV, xxHash), HMAC, PBKDF2, bcrypt, scrypt, Argon2, TOTP.112
undefinedParse HTML, select elements with CSS selectors, extract text and attributes.5
undefinedDecode JSON Web Tokens, and sign or verify them (HS, RS, ES and EdDSA).4
undefinedWork on multi-line text: sort, unique, filter, join, columns, CSV and list conversions.60
undefinedAn expression evaluator, percentages, statistics, algebra, geometry and finance helpers.116
undefinedCIDR and subnet calculators, IP and MAC tools, ports, HTTP status, MIME types, URLs and domains.92
undefinedBase conversion, the hex and binary calculator, bit operations, IEEE 754, roman numerals, number words, primes and checksums.111
undefinedJoin, split, clean and relate file paths in Windows or POSIX flavour, without touching the disk.13
undefinedRandom numbers, dice, strings, passwords, passphrases, colors and picks, with optional seeds.55
undefinedTest, match, replace and explain regular expressions (Go RE2 syntax).25
undefinedRender text from a safe subset of Go text/template and a dict.2
undefinedChange, measure and analyse strings: case styles, palindromes, lengths, normalisation, similarity, Unicode.107
undefinedParse TOML into dicts and lists, and write values back as TOML.3
undefinedParse, build, join and normalize URLs and query strings as structured values.6
undefinedUUID v1-v7, ULID, KSUID, Snowflake, ObjectID, nanoid: generate, parse, convert.37
undefinedParse XML into a tree of dicts, query it with simple paths, and write it back.5
undefinedParse 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.

Edit this page on GitHub