How or can I bypass the command block character limit on singleplayer. (1.12.2)

I made a written book command full of op items but unfortunately I'm stuck because of this problem.


Creat a function with the command in it and run it from your game to get the item.

Functions do not have a character limit, instead they have a commands limit (which is pretty big).