get_file_info
Retrieves detailed metadata for a SharePoint or OneDrive file or folder by item ID or path, with optional field projection for custom library columns.
Instructions
Get detailed metadata for a file or folder by item_id or path
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_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| site | No | ||
| drive | No | ||
| fields | No | Selective field projection matching standard DriveItem fields (description, hashes, created_by, web_url, list_item_fields, etc.) and case-insensitive custom SharePoint document library column names. | |
| compact | No | Default true: core item fields, eTag, omitted field names and a hint. Pass false for every field, or pass fields: [...] to select specific fields or custom library columns. | |
| item_id | No | ||
| offline | No |