refactor(agent): unify tool execution architecture