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
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_file_metadata"
}
}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 |