AppWorld paginated endpoints: respect page_limit limits
Do not set page_limit above an endpoint's maximum. This avoids HTTP 422
validation errors and silent truncation.
Rules
- Check docs or prior outputs for the endpoint's
page_limitmaximum before bulk fetching. - For AppWorld paginated list/search endpoints, the maximum may be 20; e.g.
spotify.show_playlist_library(access_token=tok, page_limit=50)returns HTTP 422 "ensure this value is less than or equal to 20". - Use
page_limit=20and iterate withpage_indexuntil results are exhausted. - Accumulate results across pages and stop only when fewer than
page_limititems are returned or the total count is reached.
Verification
Confirm each page call returns 200 (not 422) and that iteration continues
until all items are collected. If a 422 mentions a page_limit maximum, lower
the page size and rerun.