You can also set the paginated argument to true which will alter the resulting schema to accept the page. That requires you to handle the pagination variables in your UDF, though, so it’s a bit more complicated.
@resolver docs hint about this.
UDF docs say more about making UDFs that return a page.