Hi Marcus,
the tiny button you are looking for might already exist, have a look at https://moodle.org/plugins/tiny_ai
the tiny button you are looking for might already exist, have a look at https://moodle.org/plugins/tiny_ai
It's intended to exactly provide a solution for the use cases you are describing.
Only thing missing is a direct drawing/writing input (which is pretty difficult to make close to equally good as the input that tablets provide natively), but you can copy/paste your handwriting and it will extract the text. You can insert it into the editor with just one extra click. Customizing the prompt is also possible.
BTW: The tiny button is also available inside our chatbot (https://moodle.org/plugins/block_ai_chat)
Regards,
Philipp