Convenience constructor that accepts a JsonObject and serialises it to args.
The tool arguments as a JsonObject.