Utilities
Small, deterministic helpers for math, dates, text, and JSON. They’re pure functions — no configuration, no external calls, no approval, and their results are cacheable.
calculator
Evaluate math — expression mode (2 + 3 * 4, sqrt(16) + 2^3) or a legacy operation mode. Category: Function · Setup: none.
- Inputs:
expression; or legacyoperation+a/b; optionalprecision. Supportssqrt/abs/log/sin/cos/floor/ceil/round/pow/min/max, constantspi/e/tau, operators+ - * / ^ %.
datetime
Date and time operations — current time, parse, format, add/subtract, diff, and more. Category: Function · Setup: none.
- Inputs:
operation(now,parse,format,add,subtract,diff,start_of,end_of,day_of_week,to_timestamp,from_timestamp, …), plusdatetime/datetime2,format,timezone,unit,value.
text_transform
Manipulate text — case conversion, trim, replace, regex, split/join, slug, hashing. Category: Function · Setup: none.
- Inputs:
operation(uppercase,lowercase,titlecase,trim,replace,regex_replace,split,join,slug,snake_case,hash_sha256, …), plustext(or anartifact_id),pattern,replacement,separator.
json_tools
Work with JSON — parse, stringify, path get/set/delete, merge, flatten, filter, validate. Category: Function · Setup: none.
- Inputs:
operation(parse,stringify,pretty_print,get,set,merge,flatten,filter,validate,diff, …), plusjson(or anartifact_id),json2,path,value,indent.
These pair well with data tools — run a db_query, then reshape the result with json_tools or format a value with text_transform before passing it downstream.