Skip to content
All tools

onedrive_search_files

OneDrive · macOS · 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.

macOS

Purpose

Searches for files by name in a OneDrive directory (recursive). Returns up to max_results matches (default 50); raise max_results or narrow the root for more.

Required inputs

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.

Full input schema — macOS
{
  "properties": {
    "max_results": {
      "description": "Maximum results (default 50)",
      "type": "integer"
    },
    "query": {
      "description": "Filename pattern to search for",
      "type": "string"
    },
    "root": {
      "description": "Root OneDrive path to search in (optional)",
      "type": "string"
    }
  },
  "required": [
    "query"
  ],
  "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.

{
  "query": "launch checklist"
}

Windows

Purpose

Searches for files by name in a OneDrive directory (recursive). With a Microsoft 365 account connected it reads that account's OneDrive through Microsoft Graph, with no OneDrive app needed: paths are inside the drive (Documents/report.docx), and a local path is accepted only under that account's own OneDrive folder.

Required inputs

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.

Full input schema — Windows
{
  "properties": {
    "max_results": {
      "description": "Maximum results (default: 20)",
      "minimum": 1,
      "type": "number"
    },
    "query": {
      "description": "Search term (matched against filename, case-insensitive)",
      "type": "string"
    },
    "root": {
      "description": "Root path to search in (default: first OneDrive root)",
      "type": "string"
    }
  },
  "required": [
    "query"
  ],
  "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.

{
  "query": "launch checklist"
}