onedrive_list_files

Pack: onedrive · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)

No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/onedrive_list_files for the schema, then POST the same URL with its arguments for the data.

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 — every tool in the catalog, including this one — or use one-click install buttons:

{
  "mcpServers": {
    "pipeworx": {
      "url": "https://pipeworx.io/mcp"
    }
  }
}
Connect to just the onedrive pack
{
  "mcpServers": {
    "onedrive": {
      "url": "https://gateway.pipeworx.io/onedrive/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build October 16, 2026