This is fun.
Try drawing programmatically:
tools[7].paint(ctx, x, y);
then run: $canvas.trigger('change.session-hook');
to flush your canvas changes to the server.