Claude, Google Drive API
The video explains why Claude cannot find a Drive file by its folder path and what it does instead. It covers three habits behind every call: treat a folder as a file, add the shared-drive parameters, and export rather than download Google-made files.
A common assumption is that Claude finds a file in Google Drive by walking its folder path, the way a normal file system works. The video corrects that: there is no path API, and Drive works entirely by file ID. It then traces one realistic request through the API to show three habits that decide whether Claude's calls come back complete or quietly wrong.
Drive has no path API
Everything in Drive is addressed by ID. A file does not live at a path such as a folder name followed by a file name, so Claude cannot ask Drive to resolve one. Any plan that depends on walking a path has nothing to call, which is why the ID-based model shapes every request Claude makes.
A folder is just a file with a mime type
In Drive, a folder is not a separate kind of thing from a file. It is a file whose mime type says it is a folder. Hierarchy exists only through each file's parents array, which holds the IDs of the items that contain it.
That has a practical consequence. There is no "get folder" endpoint that returns a folder's contents. When Claude is asked to list what is in a folder, it searches for every file whose parents array contains that folder's ID. The folder's contents are a filter result, not a lookup.
Shared drives are invisible by default
The video's worked example is a request to export every spreadsheet modified in the last month on a team's shared drive as CSV. Files on a shared drive are invisible by default, so the search needs three extra parameters before it can see them at all. The video names supportsAllDrives as one of them, and points out that leaving it out does not produce an error. The file simply looks as if it was never there.
Pagination must be requested
Once the search is set up correctly, the response can still be incomplete. The fields= parameter has to explicitly ask for nextPageToken, otherwise the results quietly stop at one page. With the token requested, the list comes back complete, page after page.
Google-made files cannot be downloaded
The last trap is the file type. A Google Sheet has no downloadable bytes, because it is not a binary file. Pulling it with alt=media returns a flat 403 rather than a helpful message. The fix is to use the export endpoint instead, which is how the example spreadsheet becomes a CSV.
Failures that never name the cause
The video stresses that skipping any one of these habits produces a failure that does not say which parameter was missed. A missing supportsAllDrives just looks like the file was never there, and the 403 on a Sheet is a flat refusal rather than a helpful error. That is why the video treats these as habits to apply on every Drive call rather than errors to debug afterward.
Key takeaways
- Drive has no path API; everything works by file ID.
- A folder is a file with a folder mime type, and hierarchy lives in each file's
parentsarray. - Listing a folder means searching for files whose
parentscontain the folder's ID. - Files on a shared drive are hidden unless the search includes the three extra shared-drive parameters, including
supportsAllDrives. - Ask for
nextPageTokeninfields=or results stop at the first page. - Google Sheets cannot be fetched with
alt=media; use the export endpoint instead. - These failures do not name the missing parameter, so check all three on every call.
Try it yourself
Give Claude this prompt: "Find all spreadsheets modified in the last 30 days on our shared drive, and export the first one as CSV." Then watch three things. Does it pass all three shared-drive parameters on the search? Does it request nextPageToken in fields= instead of assuming one page is everything? Does it reach for the export endpoint instead of alt=media once it sees the result is a Google Sheet?
Chapters
Full transcript(auto-generated, with timestamps)
Claude finds my file by its folder path in Drive. Right?
[0:00]Someone assumes Claude finds a drive file by its folder path like a normal file system. There's no path API. Drive works entirely by file ID. So, what does that ID-based model actually get you? In
Not a separate thing — a file with a mimeType
[0:12]Google Drive, a folder isn't a separate kind of thing from a file. It's a file with a mime type that says folder. Ask Claude to list a folder's contents and there's no get folder endpoint to call. It searches for every file whose parents array contains that folder's ID. Say you
THE ANCHOR — shared drive, invisible by default
[0:27]Want every spreadsheet modified in the last month on your team's shared drive exported as CSV. Files there are invisible by default. The search needs three extra parameters just to see them. And once the list comes back, fields equals has to explicitly ask for next page token or the results quietly stop at one page. Get all three shared drive
Complete — or silently wrong
[0:46]Parameters right, ask for next page token, and the list comes back complete page after page. But that spreadsheet has no downloadable bytes. It's a Google Sheet, not a binary file. So, pulling it with all equals media returns a flat 403, not a helpful error. The fix is the export endpoint instead. Skip any one of these three habits and the failure never says which parameter you missed. A missing supports all drives just looks like the file was never there. Every Google Drive call Claude makes
Carry-out
[1:13]Turns on three habits: treat a folder as a file, add supports all drives for anything shared, and export instead of download for anything Google made. Your turn. Here's the prompt. Read it with
Your turn
[1:24]Me. Find all spreadsheets modified in the last 30 days on our shared drive and export the first one as CSV. Watch three things. Does it pass all three shared drive parameters on the search? Does it ask for next page token in fields equals? And does it export the sheet instead of trying all equals media? Liam in for Bear. Claude Google Drive API.
Outro
[1:43]Liam in for Bear.





