I found out that it's required to add '--seq={seq_id}' at the end of the note function.Technically this shouldn't be necessary for the kp argument, although it is for the other options, but the code still requires it.
So to get the sample code to work without giving errors, it should look like this:note $meta.sub[0].user_id kp --seq=1234
I haven't seen any evidence that this does actually give any kind of typing notifications when running an automated script. Maybe because it happens too quickly?