sharepoint_list_files
SharePoint · Windows
Effect: read (strongest supported action). Status: gated.
Gated means the tool requires an installed app, a connected account, permission, or runtime availability. Check those requirements on the listed platform before using it.
Windows
Purpose
Lists a SharePoint site's document libraries, or the files and folders in one. Without `library` it answers {"libraries": [...]}, each with its `library` id; with `library`, {"items": [...]} in `folder` inside it (its top folder when omitted), each with its path. Dot-named items are left out. Past 200 libraries or 1000 items the last element is {"truncated": true, "note": …}.
Required inputs
site— A site's id, from sharepoint_list_sites
Permissions and confirmation
No explicit confirmation parameter is exposed in this snapshot. This does not grant permission to act: obtain user authorization before any real action.
- Use only the apps, accounts and resources authorized by the user on this platform. Consult this tool's platform-specific description for its connection and permission requirements; this catalog does not assert additional OAuth scopes or OS entitlements.
Full input schema — Windows
{
"properties": {
"account": {
"description": "Which connected Microsoft 365 account to use: its email (UPN), its id from list_m365_accounts, or its display name when unique. Leave it out to use the default account.",
"type": "string"
},
"folder": {
"description": "A folder inside the library, like Reports/2026; omit for its top folder",
"type": "string"
},
"library": {
"description": "A library's id, from sharepoint_list_files without `library`",
"type": "string"
},
"site": {
"description": "A site's id, from sharepoint_list_sites",
"type": "string"
}
},
"required": [
"site"
],
"type": "object"
}Documentation example
Do not execute this example. These concrete inputs refer to a fictional demonstration dataset. Resolve real handles and obtain user authorization before any real call.
{
"library": "Documents",
"site": "Marketing"
}