> ## Documentation Index
> Fetch the complete documentation index at: https://documentation.deepmask.io/llms.txt
> Use this file to discover all available pages before exploring further.

# List Folder Contents

> List files and sub-folders inside a SharePoint drive folder.

`sharepoint_list_folder`

Lists the files and sub-folders inside a folder within a drive. Pass `item_id="root"` to start at the top of a document library, then drill into sub-folders by passing their `item_id`.

## Parameters

| Parameter         | Type   | Required | Description                                                           |
| ----------------- | ------ | -------- | --------------------------------------------------------------------- |
| `drive_id`        | string | Yes      | ID of the drive containing the folder.                                |
| `item_id`         | string | No       | Item ID of the folder to list. Defaults to `"root"` (the drive root). |
| `limit`           | number | No       | Max items to return (1–100, default 20).                              |
| `offset`          | number | No       | Items to skip for pagination (default 0).                             |
| `response_format` | string | No       | Output format: `"markdown"` (default) or `"json"`.                    |

## Returns

A paginated list of items (files and folders), each with `id`, `name`, `webUrl`, `size`, `lastModifiedDateTime`, and type indicators. Includes `total_count`, `count`, `offset`, `has_more`, and `next_offset`.

Results are ordered alphabetically by name.

## Example use

> "Show me everything in the root of the Marketing document library."
