List media files
ghl_list_mediaList files and folders in a GoHighLevel Media Library with pagination, search, and type filtering.
Instructions
List files/folders in the location's Media Library with pagination, search, and optional type filter.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Whether to list files or folders (required by GHL). | file |
| limit | No | ||
| query | No | Search by file name. | |
| offset | No | ||
| sortBy | No | createdAt | |
| sortOrder | No | desc | |
| locationId | No | GHL Location (sub-account) ID. Defaults to GHL_LOCATION_ID. |