Get an item from any drive
files_get_drive_itemReads metadata for any file or folder in drives the signed-in user can access, including shared or Teams files, using driveId and itemId. Use it to resolve remote or shared drive item IDs to details.
Instructions
Reads the metadata of one file or folder in ANY drive the signed-in user can reach — not just their own OneDrive — returning the same detail as files_get_item. This is what makes the remoteDriveId/remoteItemId stubs from files_list_shared and files_list_recent readable, and the driveId/itemId from teams_get_channel_files_folder addressable. Needs the Files.Read.All scope, which a user can consent to without an administrator.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| itemId | Yes | Item id within that drive, e.g. the remoteItemId from files_list_shared. | |
| driveId | Yes | Drive id, e.g. the remoteDriveId from files_list_shared or the driveId from teams_get_channel_files_folder. |