ozon_fetch_all
Automatically retrieve all items from a paginated Ozon API endpoint by iterating through pages until complete or a set limit is reached.
Instructions
Fetch all pages of a paginated Ozon endpoint.
Walks the endpoint's pagination pattern (offset/page/last_id/cursor/
page_token — see knowledge/pagination_patterns.yaml) until the
endpoint reports the last page or max_items is reached. Per-page
rate limits are still enforced via the same machinery as
ozon_call_method.
Args: operation_id: same as ozon_call_method, must support pagination params: request body WITHOUT offset/limit/last_id/cursor — the paginator owns those fields max_items: safety cap, range [1, MAX_FETCH_ALL_ITEMS] cabinet_tier: override the cached cabinet tier
Returns:
{"items": [...], "total_fetched": N, "truncated": bool,
"pages_fetched": int} on success or a structured OzonError
on failure.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | No | ||
| max_items | No | ||
| cabinet_tier | No | ||
| operation_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||