The second example "Custom tool with template" does not work as shown in above pictures. Currently, it is inserting at the start. How to get it working.
On a different note, why do I get this error on the website when I want to see source code - Cannot fetch the example source code: TypeError: Failed to fetch