The listing below is a simple example of a ptype declaration that causes the ToolTalk service to automatically start a tool. The example code states:
If a message to display, edit, or compose is received and there is no current instance of the tool running that can handle the messge, start "/home/toone/tools/mytest" and deliver the message.
This example causes the ToolTalk sevice to search indefinitely for a handler.