> ## 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.

# Get File Metadata

> Returns metadata for a SharePoint file or folder without downloading its content.

`sharepoint_get_file_metadata`

Returns metadata for a specific file or folder — name, size, MIME type, timestamps, and URLs — without downloading the actual content. Use this when you only need to know what a file is, not what it contains.

## Parameters

| Parameter         | Type   | Required | Description                                        |
| ----------------- | ------ | -------- | -------------------------------------------------- |
| `drive_id`        | string | Yes      | ID of the drive containing the file.               |
| `item_id`         | string | Yes      | Item ID of the file or folder.                     |
| `response_format` | string | No       | Output format: `"markdown"` (default) or `"json"`. |

## Returns

A `DriveItem` object with `id`, `name`, `webUrl`, `size`, `createdDateTime`, `lastModifiedDateTime`, `file.mimeType` (for files), `folder.childCount` (for folders), and `parentReference`.

## Example use

> "What is the size and last-modified date of item ID `01ABC123` in drive `b!xyz`?"
