list_files
List files in a Drive folder, returning file tokens for management. Use user authentication to access personal-space root files, or bot mode to see only shared folders.
Instructions
[Official API] List files in a Drive folder. UAT-first with app fallback: with user identity (UAT), empty folder_token lists YOUR personal-space ("我的空间") root; via bot it can only see folders shared with the bot (personal-space folders return 403). Response carries viaUser so you know whose view you got. Use the returned file token with manage_drive_file to copy/move/delete.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page_size | No | Max files per page (default 50) | |
| page_token | No | Pagination token from a previous nextPageToken | |
| folder_token | No | Folder token (empty for root — your 我的空间 root when UAT is configured) |