ExportTileset

app.command.ExportTileset {
  dataFormat=SpriteSheetDataFormat.JSON_ARRAY,
  fromTilesets=true
}

This is similar to using the -export-tileset argument from the CLI with -format=json-array option.

This command accept the same parameters as app.command.SaveFileCopyAs.