How to use Javascript to get Response data on the Kibana Discover page?

I hope that after searching in Discover, I can use JS or Chrome DevTools Console in the /app/kibana#/discover page to get the data returned by ES for further processing? How can I get the result of javascript object?

Hi @neargle,
to get the data returned by ES, click on inspect button on the top-left menu. The response tab displays what ES returns.

@Marta_Bondyra Thx for reply, I know this feature is available before, but I want to get this data through JavaScript and use JS to process search result without opening inspect tab in the left.