Komga icon

Komga

Interact with the Komga API

Collection → List

AI-generated

Summary

List Komga collections with optional search, library filtering, and result size/pagination control.

Inputs

  • limit — Max number of results to return; clamped between 1 and 1000, default 50. Sent as query parameter size. Output routed to maxResults.
  • returnAll — When true, pagination is enabled and the query size is set to 1000 (or the limit value otherwise). When false, results are capped at the specified limit.
  • search — Search term sent as query parameter search. Optional; default empty string.
  • libraryId — Filter collections by one or more library IDs. Accepts multiple values; sent as query parameter library_id. Default empty array.
  • unpaged — When true, returns all results without pagination. Sent as query parameter unpaged. Default false.

Output shape

Array of collection objects from the Komga API, filtered and paged according to the specified parameters.

Pagination behavior is governed by the combination of returnAll and unpaged: if returnAll is true, up to 1000 results are returned; if unpaged is true, pagination is disabled entirely; otherwise results respect the limit value.

Discussion