← Back to Documentation

Macro JSON Format

Overview

Macros are stored as JSON files with the following structure.

Root Object

{
  "version": "2.0",
  "name": "My Macro",
  "description": "Optional description",
  "nodes": [],
  "connections": [],
  "settings": {}
}

Nodes Array

Each node has:

id: Unique identifier

type: Action type string

position: {x, y} coordinates

data: Node-specific configuration

Connections Array

Each connection has:

id: Unique identifier

source: Source node ID

target: Target node ID

sourceHandle: Output port name

targetHandle: Input port name

Settings Object

Global macro settings including humanization defaults.