How to get change page inside the plugin

If the fig file has two pages, I can only access the currentPage but I can’t find documentation about changing to another page. Is it possible with the plugin API support?

figma.root.children

Thanks again!