Minecraft, how to summon specific villager in 18w50a?

I tried every command I could find on the internet and none of them works. -.- I want a toolsmith but:

/summon minecraft:villager ~ ~ ~ {Profession:3, Career:3}

spawns just a random villager....


Solution 1:

After digging in the wiki, and learning how commands works, the command format has changed in 1.14. Now you have to input:

/summon minecraft:villager ~ ~ ~ {VillagerData: {level: 1, profession: "minecraft:toolsmith", type: "minecraft:plains"}}

Professions (their names) are listed here: https://minecraft.gamepedia.com/Villager