Overview
Tracecat expressions can call built-in functions with theFN.<name>(...) syntax.
Functions accept positional arguments only: keyword arguments such as FN.to_isoformat(FN.now(), timespec="seconds") do not parse; write FN.to_isoformat(FN.now(), "seconds").
Function results support bracket indexing such as FN.range(0, 3)[0].
Function results do not support JSONPath wildcards or filters such as FN.range(0, 3)[*].
Use in-line functions for one-line data transforms in action inputs.
For more complex logic, use a Python script or a custom UDF instead.
Examples
Build a prompt or short string:FN.to_isoformat keeps microseconds by default; pass "seconds" as the second argument to truncate:
Related pages
- See the Functions cheatsheet for the full function reference and more examples.
- See Expressions for expression syntax and contexts.