fix(pi): observe tool events instead of registering a bash tool (#3557)