Get OneDrive File Details
get_drive_itemRetrieve metadata for a file or folder in OneDrive or SharePoint by its drive item ID, so an AI assistant can inspect names, sizes, and details before acting on it.
Instructions
Get file or folder metadata
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"item_id": "<item_id>"
},
"name": "get_drive_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item_id | Yes | Drive item ID |