SharePoint upload file

sharepoint__upload_file

Access

Requires a project integration connection for sharepoint.

Call type: Can change resources.

Arguments

FieldTypeRequiredDescription and constraints
siteIdstringYesSharePoint site ID
parentFolderIdstringNoParent folder item ID, or root
fileNamestringYesName of the file to upload
contentstringYesFile content to upload

Example request

Send this JSON-RPC request through an initialized MCP client. Replace sample identifiers and values before calling the tool. See MCP client setup.

json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "sharepoint__upload_file",
    "arguments": {
      "siteId": "example",
      "fileName": "example",
      "content": "example"
    }
  }
}

Result

No output schema is published for this tool. The input contract does not define its return fields. Inspect the MCP response content and isError; do not assume a fixed object shape. See the sharepoint integration reference for provider setup and tool context.

Full schemas

json
{
  "type": "object",
  "properties": {
    "siteId": {
      "type": "string",
      "description": "SharePoint site ID"
    },
    "parentFolderId": {
      "type": "string",
      "description": "Parent folder item ID, or root"
    },
    "fileName": {
      "type": "string",
      "description": "Name of the file to upload"
    },
    "content": {
      "type": "string",
      "description": "File content to upload"
    }
  },
  "required": [
    "siteId",
    "fileName",
    "content"
  ],
  "description": "Arguments for the sharepoint__upload_file tool."
}