get_file_metadata
Retrieve detailed metadata for files and folders in OneDrive or SharePoint, including version history, using item ID or path.
Instructions
Get detailed metadata for a file or folder
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| itemId | No | Item ID | |
| itemPath | No | Alternative: item path | |
| siteId | No | SharePoint site ID (optional) | |
| site | No | Known SharePoint site alias or canonical URL | |
| siteUrl | No | Canonical SharePoint site URL (optional alternative to siteId) | |
| driveId | No | Drive ID for a specific document library (optional) | |
| includeVersions | No | Include version history |