Skip to main content

List Drive Files

Catalog + Curated

This page is generated from the full broker catalog and enhanced with curated examples.

GETgoogle.drive_list_files

List files and folders in Google Drive with optional query filters.

Request Body

{
"jsonrpc": "2.0",
"id": "google-drive-list-files-example",
"method": "tools/call",
"params": {
"name": "google.drive_list_files",
"arguments": {
"query": "name contains 'Q1' and mimeType='application/pdf'",
"limit": 25
}
}
}

Arguments Schema

{
"type": "object",
"properties": {
"query": {
"type": "string"
},
"limit": {
"type": "number",
"minimum": 1,
"maximum": 200
}
},
"additionalProperties": false
}

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": "google-drive-list-files-example",
"method": "tools/call",
"params": {
"name": "google.drive_list_files",
"arguments": {
"query": "name contains '\''Q1'\'' and mimeType='\''application/pdf'\''",
"limit": 25
}
}
}'

Example Responses

{
"ok": true,
"files": [
{
"id": "1AbCdEf",
"name": "Q1 Strategy Brief.pdf",
"mimeType": "application/pdf"
}
]
}