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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "ghl_list_media"
}
}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. |