Upload a file to OneDrive. Provide either fileUrl (to upload from a URL) or fileContent (base64 encoded content), but not both. NOTE: Newly uploaded files may not appear in search results for several minutes due to OneDrive indexing delays. Use onedrive_list_children or onedrive_get_item_by_path for immediate access.
Download a file from OneDrive and store it as an artifact. Returns a link to the stored file, metadata, and a text preview for supported types (PDF, DOCX, XLSX, PPTX). NEVER use this tool for files that are supported by the microsoft excel, powerpoint, and word tools.
Search for files and folders in OneDrive. Two search modes: (1) FUZZY SEARCH (default): Full-text search across filenames and content. Without folderId, searches recursively through entire OneDrive. With folderId, only returns direct children of that folder (not recursive into subfolders). (2) EXACT MATCH: Find files with an exact filename, only searches direct children of the folder (not recursive). NOTE: Fuzzy search may not find recently uploaded files for several minutes due to OneDrive indexing delays. Use exact match with folderId for immediate results, or use onedrive_list_children.
Move a file or folder to a new location in OneDriveParameters:
Parameter
Type
Required
Default
Description
itemId
string
Yes
—
ID of the file or folder to move
destinationPath
string
Yes
—
Path to the destination folder
newName
string
No
—
New name of the moved file or folder
Show inputSchema
{ "type": "object", "properties": { "PCID": { "type": "string", "description": "Pink Connect ID" }, "itemId": { "type": "string", "description": "ID of the file or folder to move" }, "destinationPath": { "type": "string", "description": "Path to the destination folder" }, "newName": { "type": "string", "description": "New name of the moved file or folder" } }, "required": [ "PCID", "itemId", "destinationPath" ]}
Upload a file to OneDrive. Provide either fileUrl (to upload from a URL) or fileContent (base64 encoded content), but not both. NOTE: Newly uploaded files may not appear in search results for several minutes due to OneDrive indexing delays. Use onedrive_list_children or onedrive_get_item_by_path for immediate access.Parameters:
Parameter
Type
Required
Default
Description
parentPath
string
Yes
—
Path to the parent folder to upload the file to
fileName
string
Yes
—
Name of the file to upload
fileContent
string
No
—
Base64 encoded content of the file to upload. Required if fileUrl is not provided.
fileUrl
string
No
—
URL of the file to upload. Required if fileContent is not provided.
Show inputSchema
{ "type": "object", "properties": { "PCID": { "type": "string", "description": "Pink Connect ID" }, "parentPath": { "type": "string", "description": "Path to the parent folder to upload the file to" }, "fileName": { "type": "string", "description": "Name of the file to upload" }, "fileContent": { "type": "string", "description": "Base64 encoded content of the file to upload. Required if fileUrl is not provided." }, "fileUrl": { "type": "string", "description": "URL of the file to upload. Required if fileContent is not provided." } }, "required": [ "PCID", "parentPath", "fileName" ]}
Download a file from OneDrive and store it as an artifact. Returns a link to the stored file, metadata, and a text preview for supported types (PDF, DOCX, XLSX, PPTX). NEVER use this tool for files that are supported by the microsoft excel, powerpoint, and word tools.Parameters:
Parameter
Type
Required
Default
Description
itemId
string
Yes
—
ID of the file to download
stream
boolean
No
true
RECOMMENDED: true (default). Returns a downloadUrl + auth headers for efficient streaming. Set to false ONLY for small files (<2MB) requiring immediate base64 content. Setting to false for large files will blow out the context window.
extractText
boolean
No
true
Automatically extracts text from supported formats (PDF, DOCX, PPTX, XLSX) and includes it in the response. Text files do not need extraction. Set to false to skip extraction.
Show inputSchema
{ "type": "object", "properties": { "PCID": { "type": "string", "description": "Pink Connect ID" }, "itemId": { "type": "string", "description": "ID of the file to download" }, "stream": { "type": "boolean", "default": true, "description": "RECOMMENDED: true (default). Returns a downloadUrl + auth headers for efficient streaming. Set to false ONLY for small files (<2MB) requiring immediate base64 content. Setting to false for large files will blow out the context window." }, "extractText": { "type": "boolean", "default": true, "description": "Automatically extracts text from supported formats (PDF, DOCX, PPTX, XLSX) and includes it in the response. Text files do not need extraction. Set to false to skip extraction." } }, "required": [ "PCID", "itemId" ]}
Search for files and folders in OneDrive. Two search modes: (1) FUZZY SEARCH (default): Full-text search across filenames and content. Without folderId, searches recursively through entire OneDrive. With folderId, only returns direct children of that folder (not recursive into subfolders). (2) EXACT MATCH: Find files with an exact filename, only searches direct children of the folder (not recursive). NOTE: Fuzzy search may not find recently uploaded files for several minutes due to OneDrive indexing delays. Use exact match with folderId for immediate results, or use onedrive_list_children.Parameters:
Parameter
Type
Required
Default
Description
query
string
Yes
—
Search query - for fuzzy search this matches filenames and content; for exact match this must be the exact filename
folderId
string
No
—
Folder ID to limit search to. IMPORTANT: Only returns direct children of this folder (not recursive into subfolders). If not provided, fuzzy search is recursive through entire OneDrive. Get folder IDs from onedrive_list_items or onedrive_list_children.
exactMatch
boolean
No
false
If true, find files with exact filename match (direct children only, not recursive). If false (default), performs fuzzy full-text search.
pageSize
number
No
25
Number of items to return, default is 25
Show inputSchema
{ "type": "object", "properties": { "PCID": { "type": "string", "description": "Pink Connect ID" }, "query": { "type": "string", "description": "Search query - for fuzzy search this matches filenames and content; for exact match this must be the exact filename" }, "folderId": { "type": "string", "description": "Folder ID to limit search to. IMPORTANT: Only returns direct children of this folder (not recursive into subfolders). If not provided, fuzzy search is recursive through entire OneDrive. Get folder IDs from onedrive_list_items or onedrive_list_children." }, "exactMatch": { "type": "boolean", "default": false, "description": "If true, find files with exact filename match (direct children only, not recursive). If false (default), performs fuzzy full-text search." }, "pageSize": { "type": "number", "default": 25, "description": "Number of items to return, default is 25" } }, "required": [ "PCID", "query" ]}