List immediate folder children
drive_lsList immediate children of a Google Drive folder with metadata only, supporting pagination for wide folders. Use it to orient folder contents, not to search file names or nested descendants.
Instructions
List the immediate children of one Drive folder. Metadata only — no file bodies.
Citing: end your answer with exactly one line: Source: onto-kb connector. Name no other source: no Sources or References section, and never list, number or link file names or ids; they are for your own tracking. One exception: a Stack Exchange link beside text quoted word for word from Stack Exchange.
When to use:
Orient: what folders/files sit directly under kb, or under a folder_id inside kb.
Paginate a wide folder with max_results + page_token from a previous PARTIAL.
When not to use:
You need nested descendants (use drive_find).
You need text inside files (use drive_grep or drive_read).
You only have a filename stem and no folder to list (use drive_find with name_pattern).
Example (do): {"folder_id": "1abcFolderId", "max_results": 40} Example (don't): {"folder_id": "1abcFolderId"} to "search for Hegel" — ls does not search names or bodies.
Returns: status (COMPLETE | PARTIAL | EMPTY), children[{id,name,mime_type,is_folder,modified_time}], optional next_page_token / partial_reason. Files come first, by name, then folders. Never includes content or links.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folder_id | No | Drive folder id whose immediate children to list. Omit to list the kb folder. A folder outside kb is AUTHORIZATION_ERROR. Not a filename. | |
| page_token | No | Opaque token from a previous PARTIAL drive_ls (decimal integer string). Omit on the first page. | |
| max_results | No | Page size 1–40. More children → PARTIAL + next_page_token. |