onedrive_list_files

Pack: onedrive · Endpoint: https://gateway.pipeworx.io/onedrive/mcp

List files and folders in a OneDrive (Microsoft 365) folder. Pass a folder path relative to the drive root (e.g. “Documents” or “Documents/Reports”); omit to list the root. Returns each item’s id, name, size, whether it is a folder, last-modified time, and web URL. Use to browse a user’s OneDrive documents.

Parameters

NameTypeRequiredDescription
pathstringnoFolder path relative to the OneDrive root, e.g. “Documents” or “Documents/Reports”. Omit or leave empty for the root folder.
topnumbernoMaximum number of items to return (default 50, max 200).

Example call

Arguments

{
  "path": "Documents"
}

curl

curl -X POST https://gateway.pipeworx.io/onedrive/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"onedrive_list_files","arguments":{"path":"Documents"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('onedrive_list_files', {
  "path": "Documents"
});

More examples

{
  "path": "Documents/Reports",
  "top": 100
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "onedrive": {
      "url": "https://gateway.pipeworx.io/onedrive/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build September 1, 2026