Skip to main content

Overview

Tracecat expressions can call built-in functions with the FN.<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:
Time manipulation for alert search windows. FN.to_isoformat keeps microseconds by default; pass "seconds" as the second argument to truncate: