Skip to main content

Get Media Files

Snapshot Catalog Entry

This page is generated from broker tools/list snapshot data.

GETghl.get_media_files

Get list of files and folders from the media library with filtering and search capabilities

Request Body

{
"jsonrpc": "2.0",
"id": "ghl-get-media-files-example",
"method": "tools/call",
"params": {
"name": "ghl.get_media_files",
"arguments": {
"tenantId": "tenantId_123",
"offset": 1,
"limit": 1,
"sortBy": "sortBy_example",
"sortOrder": "asc",
"type": "file",
"query": "query_example",
"altType": "location",
"altId": "altId_123",
"parentId": "parentId_123"
}
}
}

Arguments Schema

{
"type": "object",
"properties": {
"tenantId": {
"type": "string"
},
"offset": {
"type": "number",
"minimum": 0
},
"limit": {
"type": "number",
"minimum": 1,
"maximum": 100
},
"sortBy": {
"type": "string"
},
"sortOrder": {
"type": "string",
"enum": [
"asc",
"desc"
]
},
"type": {
"type": "string",
"enum": [
"file",
"folder"
]
},
"query": {
"type": "string"
},
"altType": {
"type": "string",
"enum": [
"location",
"agency"
]
},
"altId": {
"type": "string"
},
"parentId": {
"type": "string"
}
},
"required": []
}

Code Examples

curl -X POST 'https://madpanda3d.com/lab/mad-mcps/portal/api/mcp' \
-H 'Authorization: Bearer mad_live_***' \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc": "2.0",
"id": "ghl-get-media-files-example",
"method": "tools/call",
"params": {
"name": "ghl.get_media_files",
"arguments": {
"tenantId": "tenantId_123",
"offset": 1,
"limit": 1,
"sortBy": "sortBy_example",
"sortOrder": "asc",
"type": "file",
"query": "query_example",
"altType": "location",
"altId": "altId_123",
"parentId": "parentId_123"
}
}
}'

Example Responses

{
"ok": true,
"message": "Tool ghl.get_media_files executed successfully.",
"note": "Response shape varies by MCP tool. Inspect live responses for exact fields."
}