Is it possible to add switching to a tool as part of an action?