medias_fetch_media_content
Fetch lists of files and folders from a GoHighLevel location, supporting filters, sorting, pagination, and fetching all items.
Instructions
Get List of Files/ Folders
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sortBy": "<sortBy>",
"sortOrder": "<sortOrder>",
"type": "<type>"
},
"name": "medias_fetch_media_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Type | |
| altId | No | location Id Defaults to GHL_LOCATION_ID when omitted. | |
| limit | No | Number of files to show in the listing | |
| query | No | Query text | |
| offset | No | Number of files to skip in listing | |
| sortBy | Yes | Field to sorting the file listing by | |
| altType | No | AltType Defaults to GHL_LOCATION_ID when omitted. | |
| fetchAll | No | Fetch all files or folders | |
| parentId | No | parent id or folder id | |
| sortOrder | Yes | Direction in which file needs to be sorted |