Transform Agent

Reshape JSON-like data without writing code.

What it does

  • Provides data-munging steps to filter, sort, map, and restructure objects or arrays.

Common uses

  • Pick out only the fields you need before sending data to another agent.
  • Group or sort results from an API.
  • Convert between nested structures and flatter shapes.

Key actions from the spec

  • Map and extract: get or set values by path, map fields, extract nested properties, and convert JSON strings to objects or back.
  • Array helpers: append values, filter items (including removing empties), flat-map nested arrays, group by a key, sort arrays, and select the first non-empty value.
  • Serialization: turn objects into JSON strings or parse strings into objects.

Setup notes

  • Paths use JSON-style notation; ensure the property names match the shape of your data.
  • Most actions are pure transformations and do not call external systems.