Skip to main 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

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?”