n8n has its own output parser tool call that the LLM can do to format its final response to a specific format.
INodeExecutionData is the interface the format in which the output of an execution by a node is stored - https://github.com/n8n-io/n8n/blob/master/packages/workflow/src/interfaces.ts#L1248