Navigate folders with AI agent in Google Drive

Describe the problem/error/question

AI Agent has the tools to search items (files and folders) in a drive and read some documents, but doesn’t have the tools to list items in a folder. Tested with http requests node. I was able to get the list by manually executing the step with the required params, but the LLM doesn’t seem to know how to use the tool properly.

What is the error message (if any)?

Bad request - please check your parameters

{
“errorMessage”: “Bad request - please check your parameters”,
“errorDetails”: {},
“n8nDetails”: {
“time”: “02/08/2025, 9:38:17 am”,
“n8nVersion”: “1.104.2 (Self Hosted)”,
“binaryDataMode”: “default”
}
}

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

[
  {
    "response": [
      {
        "id": "17yeqyilJJUfu8mHYq6udpqlwrt7vVqVW",
        "name": "JCP 2.0",
        "mimeType": "application/vnd.google-apps.folder",
        "webViewLink": "https://drive.google.com/drive/folders/17yeqyilJJUfu8mHYq6udpqlwrt7vVqVW"
      },
      {
        "id": "1DwvmnT67ODLsklBtZyhkMu93HB0NZlFraK9HjT0IOjY",
        "name": "JCP 2.0 Working Group Gantt Chart",
        "mimeType": "application/vnd.google-apps.spreadsheet",
        "webViewLink": "https://docs.google.com/spreadsheets/d/1DwvmnT67ODLsklBtZyhkMu93HB0NZlFraK9HjT0IOjY/edit?usp=drivesdk"
      },
      {
        "id": "1HlTNe7FdEHS1PeasgJ_BOOrlUiVgvhRgx9TXQL9juuc",
        "name": "-- JCP 2.0 Programming --",
        "mimeType": "application/vnd.google-apps.document",
        "webViewLink": "https://docs.google.com/document/d/1HlTNe7FdEHS1PeasgJ_BOOrlUiVgvhRgx9TXQL9juuc/edit?usp=drivesdk"
      },
      {
        "id": "10fiHE0d6-Wo_CukVAIiUmmIFG2ADCdGf",
        "name": "JCP 2.0 20220214 Discussion.pptx",
        "mimeType": "application/vnd.openxmlformats-officedocument.presentationml.presentation",
        "webViewLink": "https://docs.google.com/presentation/d/10fiHE0d6-Wo_CukVAIiUmmIFG2ADCdGf/edit?usp=drivesdk&ouid=107786621438246272756&rtpof=true&sd=true"
      },
      {
        "id": "1dMuYgAD-w_cT1VW2iKUoLuC2oeqotfpR1kxBmZRetY4",
        "name": "Land vision for JCP 2.0",
        "mimeType": "application/vnd.google-apps.document",
        "webViewLink": "https://docs.google.com/document/d/1dMuYgAD-w_cT1VW2iKUoLuC2oeqotfpR1kxBmZRetY4/edit?usp=drivesdk"
      },
      {
        "id": "1XluD9vPWLMFVA9eU5W_wSR4CC-Ko7DNP",
        "name": "Land vision for JCP 2.0",
        "mimeType": "application/vnd.google-apps.shortcut",
        "webViewLink": "https://drive.google.com/file/d/1XluD9vPWLMFVA9eU5W_wSR4CC-Ko7DNP/view?usp=drivesdk"
      },
      {
        "id": "1K-Jw3Urv-V-AQoOMli34XtJ8wz4dkBJC",
        "name": "JCP 2.0 20220117 Discussion.pptx",
        "mimeType": "application/vnd.openxmlformats-officedocument.presentationml.presentation",
        "webViewLink": "https://docs.google.com/presentation/d/1K-Jw3Urv-V-AQoOMli34XtJ8wz4dkBJC/edit?usp=drivesdk&ouid=107786621438246272756&rtpof=true&sd=true"
      },
      {
        "id": "1wiWTUtxaKxVuO8jWgsbXpXMGZVwydcaSq7lMQ6AeL20",
        "name": "2021-12-06 First JCP 2.0 meeting",
        "mimeType": "application/vnd.google-apps.document",
        "webViewLink": "https://docs.google.com/document/d/1wiWTUtxaKxVuO8jWgsbXpXMGZVwydcaSq7lMQ6AeL20/edit?usp=drivesdk"
      },
      {
        "id": "1IT8sCiDPHzfioCXQYrwNRp8A1PdyLOfRGnJvRVHHVfE",
        "name": "JCP 2.0 - Preferred Commitments & Contributions",
        "mimeType": "application/vnd.google-apps.document",
        "webViewLink": "https://docs.google.com/document/d/1IT8sCiDPHzfioCXQYrwNRp8A1PdyLOfRGnJvRVHHVfE/edit?usp=drivesdk"
      }
    ]
  }
]

Information on your n8n setup

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.