Get a OneDrive item
files_get_itemRetrieve OneDrive file or folder metadata by item ID or path: name, size, type, timestamps, authors, parent folder, and web URL.
Instructions
Reads the metadata of one OneDrive file or folder: name, kind, size, mime type, created and last-modified times and authors, parent folder path and ids, and webUrl. Address it by itemId or by path, not both. The pre-authenticated download URL is deliberately not returned; use files_read_text for text contents or files_create_link to share the item.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Path from the OneDrive root, e.g. "Documents/Reports/q3.docx". Leading slashes are ignored. Mutually exclusive with itemId. | |
| itemId | No | Drive item id, as returned by any files_* listing tool. Mutually exclusive with path. |