tool: add support for sending learn command