{
  "service": "one_drive",
  "displayName": "OneDrive",
  "categories": [
    "Storage",
    "Productivity"
  ],
  "authTypes": [
    "oauth2"
  ],
  "auth": [
    {
      "type": "oauth2",
      "authorizationUrl": "https://login.microsoftonline.com/{tenant}/oauth2/v2.0/authorize",
      "tokenUrl": "https://login.microsoftonline.com/{tenant}/oauth2/v2.0/token",
      "scopes": [
        "User.Read",
        "Files.ReadWrite",
        "offline_access"
      ],
      "tokenEndpointAuthMethod": "client_secret_post",
      "pkce": {
        "method": "S256"
      },
      "authorizationParams": {
        "response_mode": "query"
      },
      "clientConfigFields": [
        {
          "key": "tenant",
          "label": "Tenant",
          "inputType": "text",
          "required": true,
          "secret": false,
          "defaultValue": "common",
          "placeholder": "common",
          "description": "The Microsoft identity platform tenant segment to use, such as common, organizations, consumers, or a specific tenant ID."
        }
      ]
    }
  ],
  "homepageUrl": "https://www.microsoft.com/microsoft-365/onedrive/online-cloud-storage",
  "actions": [
    {
      "id": "one_drive.create_folder",
      "service": "one_drive",
      "name": "create_folder",
      "description": "Create a folder in OneDrive.",
      "requiredScopes": [
        "Files.ReadWrite"
      ],
      "providerPermissions": [
        "Files.ReadWrite"
      ],
      "inputSchema": {
        "type": "object",
        "properties": {
          "driveId": {
            "type": "string",
            "minLength": 1,
            "description": "Optional drive ID. Omit it to use the authenticated user's default OneDrive."
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "description": "Folder name."
          },
          "parentItemId": {
            "type": "string",
            "minLength": 1,
            "description": "OneDrive drive item ID."
          },
          "parentPath": {
            "type": "string",
            "minLength": 1,
            "description": "Path from the drive root, starting with /."
          },
          "conflictBehavior": {
            "type": "string",
            "enum": [
              "rename",
              "fail",
              "replace"
            ],
            "description": "Conflict behavior used when a folder with the same name already exists."
          }
        },
        "additionalProperties": false,
        "required": [
          "name"
        ],
        "description": "OneDrive action input."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "description": "Drive item ID."
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "description": "Drive item name."
          },
          "webUrl": {
            "type": "string",
            "description": "Web URL for the drive item."
          },
          "description": {
            "type": "string",
            "description": "User-visible description for the drive item."
          },
          "cTag": {
            "type": "string",
            "description": "Content tag for the drive item."
          },
          "eTag": {
            "type": "string",
            "description": "Entity tag for the drive item."
          },
          "size": {
            "type": "integer",
            "description": "Size of the drive item in bytes."
          },
          "createdDateTime": {
            "type": "string",
            "description": "Creation timestamp for the drive item."
          },
          "lastModifiedDateTime": {
            "type": "string",
            "description": "Last modification timestamp for the drive item."
          },
          "createdBy": {
            "type": "object",
            "properties": {
              "user": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Unique identifier for the identity."
                  },
                  "displayName": {
                    "type": "string",
                    "description": "Display name for the identity."
                  }
                },
                "additionalProperties": true,
                "description": "Identity information returned by Microsoft Graph."
              },
              "application": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Unique identifier for the identity."
                  },
                  "displayName": {
                    "type": "string",
                    "description": "Display name for the identity."
                  }
                },
                "additionalProperties": true,
                "description": "Identity information returned by Microsoft Graph."
              },
              "device": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Unique identifier for the identity."
                  },
                  "displayName": {
                    "type": "string",
                    "description": "Display name for the identity."
                  }
                },
                "additionalProperties": true,
                "description": "Identity information returned by Microsoft Graph."
              }
            },
            "additionalProperties": true,
            "description": "Identity set returned by Microsoft Graph."
          },
          "lastModifiedBy": {
            "type": "object",
            "properties": {
              "user": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Unique identifier for the identity."
                  },
                  "displayName": {
                    "type": "string",
                    "description": "Display name for the identity."
                  }
                },
                "additionalProperties": true,
                "description": "Identity information returned by Microsoft Graph."
              },
              "application": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Unique identifier for the identity."
                  },
                  "displayName": {
                    "type": "string",
                    "description": "Display name for the identity."
                  }
                },
                "additionalProperties": true,
                "description": "Identity information returned by Microsoft Graph."
              },
              "device": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Unique identifier for the identity."
                  },
                  "displayName": {
                    "type": "string",
                    "description": "Display name for the identity."
                  }
                },
                "additionalProperties": true,
                "description": "Identity information returned by Microsoft Graph."
              }
            },
            "additionalProperties": true,
            "description": "Identity set returned by Microsoft Graph."
          },
          "parentReference": {
            "type": "object",
            "properties": {
              "driveId": {
                "type": "string",
                "description": "Drive ID of the referenced item."
              },
              "id": {
                "type": "string",
                "description": "Drive item ID of the referenced item."
              },
              "name": {
                "type": "string",
                "description": "Name of the referenced item."
              },
              "path": {
                "type": "string",
                "description": "Percent-encoded path of the referenced item."
              },
              "driveType": {
                "type": "string",
                "description": "Drive type of the referenced item."
              },
              "siteId": {
                "type": "string",
                "description": "Site ID of the referenced item."
              }
            },
            "additionalProperties": true,
            "description": "Reference to another drive item."
          },
          "file": {
            "type": "object",
            "properties": {
              "mimeType": {
                "type": "string",
                "description": "Detected MIME type for the file."
              },
              "hashes": {
                "type": "object",
                "additionalProperties": true,
                "description": "A generic JSON object returned by Microsoft Graph."
              }
            },
            "additionalProperties": true,
            "description": "File facet for a drive item."
          },
          "folder": {
            "type": "object",
            "properties": {
              "childCount": {
                "type": "integer",
                "description": "Number of direct child items."
              },
              "view": {
                "type": "object",
                "additionalProperties": true,
                "description": "A generic JSON object returned by Microsoft Graph."
              }
            },
            "additionalProperties": true,
            "description": "Folder facet for a drive item."
          },
          "root": {
            "type": "object",
            "additionalProperties": true,
            "description": "A generic JSON object returned by Microsoft Graph."
          },
          "deleted": {
            "type": "object",
            "additionalProperties": true,
            "description": "A generic JSON object returned by Microsoft Graph."
          },
          "fileSystemInfo": {
            "type": "object",
            "additionalProperties": true,
            "description": "A generic JSON object returned by Microsoft Graph."
          },
          "remoteItem": {
            "type": "object",
            "additionalProperties": true,
            "description": "A generic JSON object returned by Microsoft Graph."
          },
          "shared": {
            "type": "object",
            "additionalProperties": true,
            "description": "A generic JSON object returned by Microsoft Graph."
          },
          "specialFolder": {
            "type": "object",
            "additionalProperties": true,
            "description": "A generic JSON object returned by Microsoft Graph."
          },
          "searchResult": {
            "type": "object",
            "additionalProperties": true,
            "description": "A generic JSON object returned by Microsoft Graph."
          }
        },
        "additionalProperties": true,
        "description": "OneDrive drive item resource."
      }
    },
    {
      "id": "one_drive.delete_item",
      "service": "one_drive",
      "name": "delete_item",
      "description": "Delete a drive item from OneDrive and move it to the recycle bin.",
      "requiredScopes": [
        "Files.ReadWrite"
      ],
      "providerPermissions": [
        "Files.ReadWrite"
      ],
      "inputSchema": {
        "type": "object",
        "properties": {
          "driveId": {
            "type": "string",
            "minLength": 1,
            "description": "Optional drive ID. Omit it to use the authenticated user's default OneDrive."
          },
          "itemId": {
            "type": "string",
            "minLength": 1,
            "description": "OneDrive drive item ID."
          },
          "ifMatch": {
            "type": "string",
            "minLength": 1,
            "description": "Optional eTag used for conditional delete requests."
          }
        },
        "additionalProperties": false,
        "required": [
          "itemId"
        ],
        "description": "OneDrive action input."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "itemId": {
            "type": "string",
            "minLength": 1,
            "description": "OneDrive drive item ID."
          },
          "deleted": {
            "const": true,
            "type": "boolean",
            "description": "Whether the drive item was deleted successfully."
          }
        },
        "additionalProperties": false,
        "required": [
          "itemId",
          "deleted"
        ],
        "description": "Successful OneDrive delete acknowledgement."
      }
    },
    {
      "id": "one_drive.download_file",
      "service": "one_drive",
      "name": "download_file",
      "description": "Download one file from OneDrive by item ID and return its content encoded as base64.",
      "requiredScopes": [
        "Files.Read"
      ],
      "providerPermissions": [
        "Files.Read"
      ],
      "inputSchema": {
        "type": "object",
        "properties": {
          "driveId": {
            "type": "string",
            "minLength": 1,
            "description": "Optional drive ID. Omit it to use the authenticated user's default OneDrive."
          },
          "itemId": {
            "type": "string",
            "minLength": 1,
            "description": "OneDrive drive item ID."
          },
          "format": {
            "type": "string",
            "enum": [
              "pdf",
              "html"
            ],
            "description": "Optional format to convert the file into before download."
          },
          "fileName": {
            "type": "string",
            "minLength": 1,
            "description": "Optional file name to use for the downloaded file."
          },
          "ifNoneMatch": {
            "type": "string",
            "minLength": 1,
            "description": "Optional eTag or cTag used for conditional download requests."
          }
        },
        "additionalProperties": false,
        "required": [
          "itemId"
        ],
        "description": "OneDrive action input."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "content": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "description": "The downloaded file name."
                  },
                  "mimeType": {
                    "type": "string",
                    "minLength": 1,
                    "description": "The MIME type of the downloaded file."
                  },
                  "contentBase64": {
                    "type": "string",
                    "minLength": 1,
                    "description": "The downloaded file content encoded as base64."
                  }
                },
                "additionalProperties": false,
                "required": [
                  "name",
                  "mimeType",
                  "contentBase64"
                ],
                "description": "A downloaded OneDrive file."
              },
              {
                "type": "null"
              }
            ]
          },
          "notModified": {
            "type": "boolean",
            "description": "Whether the OneDrive server returned HTTP 304 Not Modified."
          }
        },
        "additionalProperties": false,
        "required": [
          "content",
          "notModified"
        ],
        "description": "OneDrive download response."
      }
    },
    {
      "id": "one_drive.download_file_by_path",
      "service": "one_drive",
      "name": "download_file_by_path",
      "description": "Download one file from OneDrive by path and return its content encoded as base64.",
      "requiredScopes": [
        "Files.Read"
      ],
      "providerPermissions": [
        "Files.Read"
      ],
      "inputSchema": {
        "type": "object",
        "properties": {
          "driveId": {
            "type": "string",
            "minLength": 1,
            "description": "Optional drive ID. Omit it to use the authenticated user's default OneDrive."
          },
          "itemPath": {
            "type": "string",
            "minLength": 1,
            "description": "Path to a drive item relative to the drive root. A leading slash is optional."
          },
          "fileName": {
            "type": "string",
            "minLength": 1,
            "description": "Optional file name to use for the downloaded file."
          },
          "ifNoneMatch": {
            "type": "string",
            "minLength": 1,
            "description": "Optional eTag or cTag used for conditional download requests."
          }
        },
        "additionalProperties": false,
        "required": [
          "itemPath"
        ],
        "description": "OneDrive action input."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "content": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "description": "The downloaded file name."
                  },
                  "mimeType": {
                    "type": "string",
                    "minLength": 1,
                    "description": "The MIME type of the downloaded file."
                  },
                  "contentBase64": {
                    "type": "string",
                    "minLength": 1,
                    "description": "The downloaded file content encoded as base64."
                  }
                },
                "additionalProperties": false,
                "required": [
                  "name",
                  "mimeType",
                  "contentBase64"
                ],
                "description": "A downloaded OneDrive file."
              },
              {
                "type": "null"
              }
            ]
          },
          "notModified": {
            "type": "boolean",
            "description": "Whether the OneDrive server returned HTTP 304 Not Modified."
          }
        },
        "additionalProperties": false,
        "required": [
          "content",
          "notModified"
        ],
        "description": "OneDrive download response."
      }
    },
    {
      "id": "one_drive.download_item_as_format",
      "service": "one_drive",
      "name": "download_item_as_format",
      "description": "Download one drive item after converting it to a supported Microsoft Graph format.",
      "requiredScopes": [
        "Files.Read"
      ],
      "providerPermissions": [
        "Files.Read"
      ],
      "inputSchema": {
        "type": "object",
        "properties": {
          "driveId": {
            "type": "string",
            "minLength": 1,
            "description": "Optional drive ID. Omit it to use the authenticated user's default OneDrive."
          },
          "format": {
            "type": "string",
            "enum": [
              "pdf",
              "html"
            ],
            "description": "Format to convert the drive item into."
          },
          "itemId": {
            "type": "string",
            "minLength": 1,
            "description": "OneDrive drive item ID."
          },
          "pathAndFilename": {
            "type": "string",
            "minLength": 1,
            "description": "Path to a drive item relative to the drive root. A leading slash is optional."
          },
          "fileName": {
            "type": "string",
            "minLength": 1,
            "description": "Optional file name to use for the downloaded file."
          }
        },
        "additionalProperties": false,
        "required": [
          "format"
        ],
        "description": "OneDrive action input."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "content": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "description": "The downloaded file name."
                  },
                  "mimeType": {
                    "type": "string",
                    "minLength": 1,
                    "description": "The MIME type of the downloaded file."
                  },
                  "contentBase64": {
                    "type": "string",
                    "minLength": 1,
                    "description": "The downloaded file content encoded as base64."
                  }
                },
                "additionalProperties": false,
                "required": [
                  "name",
                  "mimeType",
                  "contentBase64"
                ],
                "description": "A downloaded OneDrive file."
              },
              {
                "type": "null"
              }
            ]
          },
          "notModified": {
            "type": "boolean",
            "description": "Whether the OneDrive server returned HTTP 304 Not Modified."
          }
        },
        "additionalProperties": false,
        "required": [
          "content",
          "notModified"
        ],
        "description": "OneDrive download response."
      }
    },
    {
      "id": "one_drive.get_drive",
      "service": "one_drive",
      "name": "get_drive",
      "description": "Get metadata for the current drive or a specific drive.",
      "requiredScopes": [
        "Files.Read"
      ],
      "providerPermissions": [
        "Files.Read"
      ],
      "inputSchema": {
        "type": "object",
        "properties": {
          "driveId": {
            "type": "string",
            "minLength": 1,
            "description": "Optional drive ID. Omit it to use the authenticated user's default OneDrive."
          },
          "select": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "description": "A Microsoft Graph field name."
            },
            "description": "Optional Microsoft Graph fields to include in the response.",
            "minItems": 1
          }
        },
        "additionalProperties": false,
        "description": "OneDrive action input."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "description": "Drive ID."
          },
          "name": {
            "type": "string",
            "description": "Display name of the drive."
          },
          "driveType": {
            "type": "string",
            "description": "Type of drive."
          },
          "webUrl": {
            "type": "string",
            "description": "Web URL for the drive."
          },
          "quota": {
            "type": "object",
            "additionalProperties": true,
            "description": "A generic JSON object returned by Microsoft Graph."
          }
        },
        "additionalProperties": true,
        "description": "OneDrive drive resource."
      }
    },
    {
      "id": "one_drive.get_item",
      "service": "one_drive",
      "name": "get_item",
      "description": "Get metadata for a drive item by item ID or path.",
      "requiredScopes": [
        "Files.Read"
      ],
      "providerPermissions": [
        "Files.Read"
      ],
      "inputSchema": {
        "type": "object",
        "properties": {
          "driveId": {
            "type": "string",
            "minLength": 1,
            "description": "Optional drive ID. Omit it to use the authenticated user's default OneDrive."
          },
          "itemId": {
            "type": "string",
            "minLength": 1,
            "description": "OneDrive drive item ID."
          },
          "itemPath": {
            "type": "string",
            "minLength": 1,
            "description": "Path from the drive root, starting with /."
          },
          "select": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "description": "A Microsoft Graph field name."
            },
            "description": "Optional Microsoft Graph fields to include in the response.",
            "minItems": 1
          },
          "expand": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "description": "A Microsoft Graph field name."
            },
            "description": "Optional Microsoft Graph relationships to expand in the response.",
            "minItems": 1
          }
        },
        "additionalProperties": false,
        "description": "OneDrive action input."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "description": "Drive item ID."
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "description": "Drive item name."
          },
          "webUrl": {
            "type": "string",
            "description": "Web URL for the drive item."
          },
          "description": {
            "type": "string",
            "description": "User-visible description for the drive item."
          },
          "cTag": {
            "type": "string",
            "description": "Content tag for the drive item."
          },
          "eTag": {
            "type": "string",
            "description": "Entity tag for the drive item."
          },
          "size": {
            "type": "integer",
            "description": "Size of the drive item in bytes."
          },
          "createdDateTime": {
            "type": "string",
            "description": "Creation timestamp for the drive item."
          },
          "lastModifiedDateTime": {
            "type": "string",
            "description": "Last modification timestamp for the drive item."
          },
          "createdBy": {
            "type": "object",
            "properties": {
              "user": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Unique identifier for the identity."
                  },
                  "displayName": {
                    "type": "string",
                    "description": "Display name for the identity."
                  }
                },
                "additionalProperties": true,
                "description": "Identity information returned by Microsoft Graph."
              },
              "application": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Unique identifier for the identity."
                  },
                  "displayName": {
                    "type": "string",
                    "description": "Display name for the identity."
                  }
                },
                "additionalProperties": true,
                "description": "Identity information returned by Microsoft Graph."
              },
              "device": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Unique identifier for the identity."
                  },
                  "displayName": {
                    "type": "string",
                    "description": "Display name for the identity."
                  }
                },
                "additionalProperties": true,
                "description": "Identity information returned by Microsoft Graph."
              }
            },
            "additionalProperties": true,
            "description": "Identity set returned by Microsoft Graph."
          },
          "lastModifiedBy": {
            "type": "object",
            "properties": {
              "user": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Unique identifier for the identity."
                  },
                  "displayName": {
                    "type": "string",
                    "description": "Display name for the identity."
                  }
                },
                "additionalProperties": true,
                "description": "Identity information returned by Microsoft Graph."
              },
              "application": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Unique identifier for the identity."
                  },
                  "displayName": {
                    "type": "string",
                    "description": "Display name for the identity."
                  }
                },
                "additionalProperties": true,
                "description": "Identity information returned by Microsoft Graph."
              },
              "device": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Unique identifier for the identity."
                  },
                  "displayName": {
                    "type": "string",
                    "description": "Display name for the identity."
                  }
                },
                "additionalProperties": true,
                "description": "Identity information returned by Microsoft Graph."
              }
            },
            "additionalProperties": true,
            "description": "Identity set returned by Microsoft Graph."
          },
          "parentReference": {
            "type": "object",
            "properties": {
              "driveId": {
                "type": "string",
                "description": "Drive ID of the referenced item."
              },
              "id": {
                "type": "string",
                "description": "Drive item ID of the referenced item."
              },
              "name": {
                "type": "string",
                "description": "Name of the referenced item."
              },
              "path": {
                "type": "string",
                "description": "Percent-encoded path of the referenced item."
              },
              "driveType": {
                "type": "string",
                "description": "Drive type of the referenced item."
              },
              "siteId": {
                "type": "string",
                "description": "Site ID of the referenced item."
              }
            },
            "additionalProperties": true,
            "description": "Reference to another drive item."
          },
          "file": {
            "type": "object",
            "properties": {
              "mimeType": {
                "type": "string",
                "description": "Detected MIME type for the file."
              },
              "hashes": {
                "type": "object",
                "additionalProperties": true,
                "description": "A generic JSON object returned by Microsoft Graph."
              }
            },
            "additionalProperties": true,
            "description": "File facet for a drive item."
          },
          "folder": {
            "type": "object",
            "properties": {
              "childCount": {
                "type": "integer",
                "description": "Number of direct child items."
              },
              "view": {
                "type": "object",
                "additionalProperties": true,
                "description": "A generic JSON object returned by Microsoft Graph."
              }
            },
            "additionalProperties": true,
            "description": "Folder facet for a drive item."
          },
          "root": {
            "type": "object",
            "additionalProperties": true,
            "description": "A generic JSON object returned by Microsoft Graph."
          },
          "deleted": {
            "type": "object",
            "additionalProperties": true,
            "description": "A generic JSON object returned by Microsoft Graph."
          },
          "fileSystemInfo": {
            "type": "object",
            "additionalProperties": true,
            "description": "A generic JSON object returned by Microsoft Graph."
          },
          "remoteItem": {
            "type": "object",
            "additionalProperties": true,
            "description": "A generic JSON object returned by Microsoft Graph."
          },
          "shared": {
            "type": "object",
            "additionalProperties": true,
            "description": "A generic JSON object returned by Microsoft Graph."
          },
          "specialFolder": {
            "type": "object",
            "additionalProperties": true,
            "description": "A generic JSON object returned by Microsoft Graph."
          },
          "searchResult": {
            "type": "object",
            "additionalProperties": true,
            "description": "A generic JSON object returned by Microsoft Graph."
          }
        },
        "additionalProperties": true,
        "description": "OneDrive drive item resource."
      }
    },
    {
      "id": "one_drive.get_root",
      "service": "one_drive",
      "name": "get_root",
      "description": "Get metadata for the root folder of the current drive or a specific drive.",
      "requiredScopes": [
        "Files.Read"
      ],
      "providerPermissions": [
        "Files.Read"
      ],
      "inputSchema": {
        "type": "object",
        "properties": {
          "driveId": {
            "type": "string",
            "minLength": 1,
            "description": "Optional drive ID. Omit it to use the authenticated user's default OneDrive."
          },
          "select": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "description": "A Microsoft Graph field name."
            },
            "description": "Optional Microsoft Graph fields to include in the response.",
            "minItems": 1
          },
          "expand": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "description": "A Microsoft Graph field name."
            },
            "description": "Optional Microsoft Graph relationships to expand in the response.",
            "minItems": 1
          }
        },
        "additionalProperties": false,
        "description": "OneDrive action input."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "description": "Drive item ID."
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "description": "Drive item name."
          },
          "webUrl": {
            "type": "string",
            "description": "Web URL for the drive item."
          },
          "description": {
            "type": "string",
            "description": "User-visible description for the drive item."
          },
          "cTag": {
            "type": "string",
            "description": "Content tag for the drive item."
          },
          "eTag": {
            "type": "string",
            "description": "Entity tag for the drive item."
          },
          "size": {
            "type": "integer",
            "description": "Size of the drive item in bytes."
          },
          "createdDateTime": {
            "type": "string",
            "description": "Creation timestamp for the drive item."
          },
          "lastModifiedDateTime": {
            "type": "string",
            "description": "Last modification timestamp for the drive item."
          },
          "createdBy": {
            "type": "object",
            "properties": {
              "user": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Unique identifier for the identity."
                  },
                  "displayName": {
                    "type": "string",
                    "description": "Display name for the identity."
                  }
                },
                "additionalProperties": true,
                "description": "Identity information returned by Microsoft Graph."
              },
              "application": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Unique identifier for the identity."
                  },
                  "displayName": {
                    "type": "string",
                    "description": "Display name for the identity."
                  }
                },
                "additionalProperties": true,
                "description": "Identity information returned by Microsoft Graph."
              },
              "device": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Unique identifier for the identity."
                  },
                  "displayName": {
                    "type": "string",
                    "description": "Display name for the identity."
                  }
                },
                "additionalProperties": true,
                "description": "Identity information returned by Microsoft Graph."
              }
            },
            "additionalProperties": true,
            "description": "Identity set returned by Microsoft Graph."
          },
          "lastModifiedBy": {
            "type": "object",
            "properties": {
              "user": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Unique identifier for the identity."
                  },
                  "displayName": {
                    "type": "string",
                    "description": "Display name for the identity."
                  }
                },
                "additionalProperties": true,
                "description": "Identity information returned by Microsoft Graph."
              },
              "application": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Unique identifier for the identity."
                  },
                  "displayName": {
                    "type": "string",
                    "description": "Display name for the identity."
                  }
                },
                "additionalProperties": true,
                "description": "Identity information returned by Microsoft Graph."
              },
              "device": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Unique identifier for the identity."
                  },
                  "displayName": {
                    "type": "string",
                    "description": "Display name for the identity."
                  }
                },
                "additionalProperties": true,
                "description": "Identity information returned by Microsoft Graph."
              }
            },
            "additionalProperties": true,
            "description": "Identity set returned by Microsoft Graph."
          },
          "parentReference": {
            "type": "object",
            "properties": {
              "driveId": {
                "type": "string",
                "description": "Drive ID of the referenced item."
              },
              "id": {
                "type": "string",
                "description": "Drive item ID of the referenced item."
              },
              "name": {
                "type": "string",
                "description": "Name of the referenced item."
              },
              "path": {
                "type": "string",
                "description": "Percent-encoded path of the referenced item."
              },
              "driveType": {
                "type": "string",
                "description": "Drive type of the referenced item."
              },
              "siteId": {
                "type": "string",
                "description": "Site ID of the referenced item."
              }
            },
            "additionalProperties": true,
            "description": "Reference to another drive item."
          },
          "file": {
            "type": "object",
            "properties": {
              "mimeType": {
                "type": "string",
                "description": "Detected MIME type for the file."
              },
              "hashes": {
                "type": "object",
                "additionalProperties": true,
                "description": "A generic JSON object returned by Microsoft Graph."
              }
            },
            "additionalProperties": true,
            "description": "File facet for a drive item."
          },
          "folder": {
            "type": "object",
            "properties": {
              "childCount": {
                "type": "integer",
                "description": "Number of direct child items."
              },
              "view": {
                "type": "object",
                "additionalProperties": true,
                "description": "A generic JSON object returned by Microsoft Graph."
              }
            },
            "additionalProperties": true,
            "description": "Folder facet for a drive item."
          },
          "root": {
            "type": "object",
            "additionalProperties": true,
            "description": "A generic JSON object returned by Microsoft Graph."
          },
          "deleted": {
            "type": "object",
            "additionalProperties": true,
            "description": "A generic JSON object returned by Microsoft Graph."
          },
          "fileSystemInfo": {
            "type": "object",
            "additionalProperties": true,
            "description": "A generic JSON object returned by Microsoft Graph."
          },
          "remoteItem": {
            "type": "object",
            "additionalProperties": true,
            "description": "A generic JSON object returned by Microsoft Graph."
          },
          "shared": {
            "type": "object",
            "additionalProperties": true,
            "description": "A generic JSON object returned by Microsoft Graph."
          },
          "specialFolder": {
            "type": "object",
            "additionalProperties": true,
            "description": "A generic JSON object returned by Microsoft Graph."
          },
          "searchResult": {
            "type": "object",
            "additionalProperties": true,
            "description": "A generic JSON object returned by Microsoft Graph."
          }
        },
        "additionalProperties": true,
        "description": "OneDrive drive item resource."
      }
    },
    {
      "id": "one_drive.list_folder_children",
      "service": "one_drive",
      "name": "list_folder_children",
      "description": "List the direct children of a folder in OneDrive.",
      "requiredScopes": [
        "Files.Read"
      ],
      "providerPermissions": [
        "Files.Read"
      ],
      "inputSchema": {
        "type": "object",
        "properties": {
          "driveId": {
            "type": "string",
            "minLength": 1,
            "description": "Optional drive ID. Omit it to use the authenticated user's default OneDrive."
          },
          "folderItemId": {
            "type": "string",
            "minLength": 1,
            "description": "OneDrive drive item ID."
          },
          "folderPath": {
            "type": "string",
            "minLength": 1,
            "description": "Path from the drive root, starting with /."
          },
          "top": {
            "type": "integer",
            "minimum": 1,
            "maximum": 999,
            "description": "Maximum number of items to return."
          },
          "select": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "description": "A Microsoft Graph field name."
            },
            "description": "Optional Microsoft Graph fields to include in the response.",
            "minItems": 1
          },
          "expand": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "description": "A Microsoft Graph field name."
            },
            "description": "Optional Microsoft Graph relationships to expand in the response.",
            "minItems": 1
          },
          "orderBy": {
            "type": "string",
            "minLength": 1,
            "description": "Optional Microsoft Graph order-by expression."
          },
          "nextLink": {
            "type": "string",
            "description": "Opaque Microsoft Graph nextLink returned by a previous OneDrive response.",
            "format": "uri"
          }
        },
        "additionalProperties": false,
        "description": "OneDrive action input."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1,
                  "description": "Drive item ID."
                },
                "name": {
                  "type": "string",
                  "minLength": 1,
                  "description": "Drive item name."
                },
                "webUrl": {
                  "type": "string",
                  "description": "Web URL for the drive item."
                },
                "description": {
                  "type": "string",
                  "description": "User-visible description for the drive item."
                },
                "cTag": {
                  "type": "string",
                  "description": "Content tag for the drive item."
                },
                "eTag": {
                  "type": "string",
                  "description": "Entity tag for the drive item."
                },
                "size": {
                  "type": "integer",
                  "description": "Size of the drive item in bytes."
                },
                "createdDateTime": {
                  "type": "string",
                  "description": "Creation timestamp for the drive item."
                },
                "lastModifiedDateTime": {
                  "type": "string",
                  "description": "Last modification timestamp for the drive item."
                },
                "createdBy": {
                  "type": "object",
                  "properties": {
                    "user": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "Unique identifier for the identity."
                        },
                        "displayName": {
                          "type": "string",
                          "description": "Display name for the identity."
                        }
                      },
                      "additionalProperties": true,
                      "description": "Identity information returned by Microsoft Graph."
                    },
                    "application": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "Unique identifier for the identity."
                        },
                        "displayName": {
                          "type": "string",
                          "description": "Display name for the identity."
                        }
                      },
                      "additionalProperties": true,
                      "description": "Identity information returned by Microsoft Graph."
                    },
                    "device": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "Unique identifier for the identity."
                        },
                        "displayName": {
                          "type": "string",
                          "description": "Display name for the identity."
                        }
                      },
                      "additionalProperties": true,
                      "description": "Identity information returned by Microsoft Graph."
                    }
                  },
                  "additionalProperties": true,
                  "description": "Identity set returned by Microsoft Graph."
                },
                "lastModifiedBy": {
                  "type": "object",
                  "properties": {
                    "user": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "Unique identifier for the identity."
                        },
                        "displayName": {
                          "type": "string",
                          "description": "Display name for the identity."
                        }
                      },
                      "additionalProperties": true,
                      "description": "Identity information returned by Microsoft Graph."
                    },
                    "application": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "Unique identifier for the identity."
                        },
                        "displayName": {
                          "type": "string",
                          "description": "Display name for the identity."
                        }
                      },
                      "additionalProperties": true,
                      "description": "Identity information returned by Microsoft Graph."
                    },
                    "device": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "Unique identifier for the identity."
                        },
                        "displayName": {
                          "type": "string",
                          "description": "Display name for the identity."
                        }
                      },
                      "additionalProperties": true,
                      "description": "Identity information returned by Microsoft Graph."
                    }
                  },
                  "additionalProperties": true,
                  "description": "Identity set returned by Microsoft Graph."
                },
                "parentReference": {
                  "type": "object",
                  "properties": {
                    "driveId": {
                      "type": "string",
                      "description": "Drive ID of the referenced item."
                    },
                    "id": {
                      "type": "string",
                      "description": "Drive item ID of the referenced item."
                    },
                    "name": {
                      "type": "string",
                      "description": "Name of the referenced item."
                    },
                    "path": {
                      "type": "string",
                      "description": "Percent-encoded path of the referenced item."
                    },
                    "driveType": {
                      "type": "string",
                      "description": "Drive type of the referenced item."
                    },
                    "siteId": {
                      "type": "string",
                      "description": "Site ID of the referenced item."
                    }
                  },
                  "additionalProperties": true,
                  "description": "Reference to another drive item."
                },
                "file": {
                  "type": "object",
                  "properties": {
                    "mimeType": {
                      "type": "string",
                      "description": "Detected MIME type for the file."
                    },
                    "hashes": {
                      "type": "object",
                      "additionalProperties": true,
                      "description": "A generic JSON object returned by Microsoft Graph."
                    }
                  },
                  "additionalProperties": true,
                  "description": "File facet for a drive item."
                },
                "folder": {
                  "type": "object",
                  "properties": {
                    "childCount": {
                      "type": "integer",
                      "description": "Number of direct child items."
                    },
                    "view": {
                      "type": "object",
                      "additionalProperties": true,
                      "description": "A generic JSON object returned by Microsoft Graph."
                    }
                  },
                  "additionalProperties": true,
                  "description": "Folder facet for a drive item."
                },
                "root": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "A generic JSON object returned by Microsoft Graph."
                },
                "deleted": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "A generic JSON object returned by Microsoft Graph."
                },
                "fileSystemInfo": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "A generic JSON object returned by Microsoft Graph."
                },
                "remoteItem": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "A generic JSON object returned by Microsoft Graph."
                },
                "shared": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "A generic JSON object returned by Microsoft Graph."
                },
                "specialFolder": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "A generic JSON object returned by Microsoft Graph."
                },
                "searchResult": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "A generic JSON object returned by Microsoft Graph."
                }
              },
              "additionalProperties": true,
              "description": "OneDrive drive item resource."
            },
            "description": "Drive items returned by Microsoft Graph."
          },
          "nextLink": {
            "anyOf": [
              {
                "type": "string",
                "description": "Opaque nextLink for fetching the next page, if any."
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false,
        "required": [
          "items",
          "nextLink"
        ],
        "description": "OneDrive list response."
      }
    },
    {
      "id": "one_drive.search_items",
      "service": "one_drive",
      "name": "search_items",
      "description": "Search OneDrive for files and folders by keyword.",
      "requiredScopes": [
        "Files.Read"
      ],
      "providerPermissions": [
        "Files.Read"
      ],
      "inputSchema": {
        "type": "object",
        "properties": {
          "driveId": {
            "type": "string",
            "minLength": 1,
            "description": "Optional drive ID. Omit it to use the authenticated user's default OneDrive."
          },
          "query": {
            "type": "string",
            "minLength": 1,
            "description": "Keyword query used to search the current drive."
          },
          "top": {
            "type": "integer",
            "minimum": 1,
            "maximum": 999,
            "description": "Maximum number of items to return."
          },
          "select": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "description": "A Microsoft Graph field name."
            },
            "description": "Optional Microsoft Graph fields to include in the response.",
            "minItems": 1
          },
          "expand": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "description": "A Microsoft Graph field name."
            },
            "description": "Optional Microsoft Graph relationships to expand in the response.",
            "minItems": 1
          },
          "orderBy": {
            "type": "string",
            "minLength": 1,
            "description": "Optional Microsoft Graph order-by expression."
          },
          "nextLink": {
            "type": "string",
            "description": "Opaque Microsoft Graph nextLink returned by a previous OneDrive response.",
            "format": "uri"
          }
        },
        "additionalProperties": false,
        "description": "OneDrive action input."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1,
                  "description": "Drive item ID."
                },
                "name": {
                  "type": "string",
                  "minLength": 1,
                  "description": "Drive item name."
                },
                "webUrl": {
                  "type": "string",
                  "description": "Web URL for the drive item."
                },
                "description": {
                  "type": "string",
                  "description": "User-visible description for the drive item."
                },
                "cTag": {
                  "type": "string",
                  "description": "Content tag for the drive item."
                },
                "eTag": {
                  "type": "string",
                  "description": "Entity tag for the drive item."
                },
                "size": {
                  "type": "integer",
                  "description": "Size of the drive item in bytes."
                },
                "createdDateTime": {
                  "type": "string",
                  "description": "Creation timestamp for the drive item."
                },
                "lastModifiedDateTime": {
                  "type": "string",
                  "description": "Last modification timestamp for the drive item."
                },
                "createdBy": {
                  "type": "object",
                  "properties": {
                    "user": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "Unique identifier for the identity."
                        },
                        "displayName": {
                          "type": "string",
                          "description": "Display name for the identity."
                        }
                      },
                      "additionalProperties": true,
                      "description": "Identity information returned by Microsoft Graph."
                    },
                    "application": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "Unique identifier for the identity."
                        },
                        "displayName": {
                          "type": "string",
                          "description": "Display name for the identity."
                        }
                      },
                      "additionalProperties": true,
                      "description": "Identity information returned by Microsoft Graph."
                    },
                    "device": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "Unique identifier for the identity."
                        },
                        "displayName": {
                          "type": "string",
                          "description": "Display name for the identity."
                        }
                      },
                      "additionalProperties": true,
                      "description": "Identity information returned by Microsoft Graph."
                    }
                  },
                  "additionalProperties": true,
                  "description": "Identity set returned by Microsoft Graph."
                },
                "lastModifiedBy": {
                  "type": "object",
                  "properties": {
                    "user": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "Unique identifier for the identity."
                        },
                        "displayName": {
                          "type": "string",
                          "description": "Display name for the identity."
                        }
                      },
                      "additionalProperties": true,
                      "description": "Identity information returned by Microsoft Graph."
                    },
                    "application": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "Unique identifier for the identity."
                        },
                        "displayName": {
                          "type": "string",
                          "description": "Display name for the identity."
                        }
                      },
                      "additionalProperties": true,
                      "description": "Identity information returned by Microsoft Graph."
                    },
                    "device": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "Unique identifier for the identity."
                        },
                        "displayName": {
                          "type": "string",
                          "description": "Display name for the identity."
                        }
                      },
                      "additionalProperties": true,
                      "description": "Identity information returned by Microsoft Graph."
                    }
                  },
                  "additionalProperties": true,
                  "description": "Identity set returned by Microsoft Graph."
                },
                "parentReference": {
                  "type": "object",
                  "properties": {
                    "driveId": {
                      "type": "string",
                      "description": "Drive ID of the referenced item."
                    },
                    "id": {
                      "type": "string",
                      "description": "Drive item ID of the referenced item."
                    },
                    "name": {
                      "type": "string",
                      "description": "Name of the referenced item."
                    },
                    "path": {
                      "type": "string",
                      "description": "Percent-encoded path of the referenced item."
                    },
                    "driveType": {
                      "type": "string",
                      "description": "Drive type of the referenced item."
                    },
                    "siteId": {
                      "type": "string",
                      "description": "Site ID of the referenced item."
                    }
                  },
                  "additionalProperties": true,
                  "description": "Reference to another drive item."
                },
                "file": {
                  "type": "object",
                  "properties": {
                    "mimeType": {
                      "type": "string",
                      "description": "Detected MIME type for the file."
                    },
                    "hashes": {
                      "type": "object",
                      "additionalProperties": true,
                      "description": "A generic JSON object returned by Microsoft Graph."
                    }
                  },
                  "additionalProperties": true,
                  "description": "File facet for a drive item."
                },
                "folder": {
                  "type": "object",
                  "properties": {
                    "childCount": {
                      "type": "integer",
                      "description": "Number of direct child items."
                    },
                    "view": {
                      "type": "object",
                      "additionalProperties": true,
                      "description": "A generic JSON object returned by Microsoft Graph."
                    }
                  },
                  "additionalProperties": true,
                  "description": "Folder facet for a drive item."
                },
                "root": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "A generic JSON object returned by Microsoft Graph."
                },
                "deleted": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "A generic JSON object returned by Microsoft Graph."
                },
                "fileSystemInfo": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "A generic JSON object returned by Microsoft Graph."
                },
                "remoteItem": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "A generic JSON object returned by Microsoft Graph."
                },
                "shared": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "A generic JSON object returned by Microsoft Graph."
                },
                "specialFolder": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "A generic JSON object returned by Microsoft Graph."
                },
                "searchResult": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "A generic JSON object returned by Microsoft Graph."
                }
              },
              "additionalProperties": true,
              "description": "OneDrive drive item resource."
            },
            "description": "Drive items returned by Microsoft Graph."
          },
          "nextLink": {
            "anyOf": [
              {
                "type": "string",
                "description": "Opaque nextLink for fetching the next page, if any."
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false,
        "required": [
          "items",
          "nextLink"
        ],
        "description": "OneDrive list response."
      }
    },
    {
      "id": "one_drive.update_file_content",
      "service": "one_drive",
      "name": "update_file_content",
      "description": "Replace the content of one existing OneDrive file.",
      "requiredScopes": [
        "Files.ReadWrite"
      ],
      "providerPermissions": [
        "Files.ReadWrite"
      ],
      "inputSchema": {
        "type": "object",
        "properties": {
          "driveId": {
            "type": "string",
            "minLength": 1,
            "description": "Optional drive ID. Omit it to use the authenticated user's default OneDrive."
          },
          "itemId": {
            "type": "string",
            "minLength": 1,
            "description": "OneDrive drive item ID."
          },
          "file": {
            "type": "object",
            "properties": {
              "fileId": {
                "type": "string",
                "minLength": 1,
                "description": "The transit file identifier returned by POST /api/files."
              },
              "name": {
                "type": "string",
                "minLength": 1,
                "description": "Optional filename override to send to the provider."
              },
              "mimeType": {
                "type": "string",
                "minLength": 1,
                "description": "Optional MIME type override to send to the provider."
              }
            },
            "additionalProperties": false,
            "required": [
              "fileId"
            ],
            "description": "File uploaded through POST /api/files."
          },
          "contentBase64": {
            "type": "string",
            "minLength": 1,
            "description": "Base64-encoded file content used for inline uploads."
          },
          "text": {
            "type": "string",
            "description": "Plain-text file content used for inline uploads."
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "description": "File name used for inline upload content."
          },
          "mimeType": {
            "type": "string",
            "minLength": 1,
            "description": "MIME type used for inline upload content."
          },
          "description": {
            "type": "string",
            "minLength": 1,
            "description": "Optional OneDrive file description."
          },
          "deferCommit": {
            "type": "boolean",
            "description": "Unsupported for now. Uploads are always committed immediately."
          },
          "ifMatch": {
            "type": "string",
            "minLength": 1,
            "description": "Optional eTag used for conditional upload session creation."
          },
          "ifNoneMatch": {
            "type": "string",
            "minLength": 1,
            "description": "Optional eTag used to prevent updates when the item has not changed."
          },
          "fileSize": {
            "type": "integer",
            "minimum": 0,
            "description": "Optional file size hint used by Microsoft Graph for quota checks."
          },
          "fileSystemInfo": {
            "type": "object",
            "properties": {
              "createdDateTime": {
                "type": "string",
                "description": "Client-side creation timestamp.",
                "format": "date-time"
              },
              "lastAccessedDateTime": {
                "type": "string",
                "description": "Client-side last-access timestamp.",
                "format": "date-time"
              },
              "lastModifiedDateTime": {
                "type": "string",
                "description": "Client-side last-modified timestamp.",
                "format": "date-time"
              }
            },
            "additionalProperties": false,
            "description": "Client-side file system timestamps."
          },
          "conflictBehavior": {
            "type": "string",
            "enum": [
              "replace",
              "fail",
              "rename"
            ],
            "description": "Conflict behavior used when the updated content collides during commit."
          },
          "driveItemSource": {
            "type": "object",
            "additionalProperties": true,
            "description": "A generic JSON object returned by Microsoft Graph."
          },
          "mediaSource": {
            "type": "object",
            "additionalProperties": true,
            "description": "A generic JSON object returned by Microsoft Graph."
          }
        },
        "additionalProperties": false,
        "required": [
          "itemId"
        ],
        "description": "OneDrive action input."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "description": "Drive item ID."
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "description": "Drive item name."
          },
          "webUrl": {
            "type": "string",
            "description": "Web URL for the drive item."
          },
          "description": {
            "type": "string",
            "description": "User-visible description for the drive item."
          },
          "cTag": {
            "type": "string",
            "description": "Content tag for the drive item."
          },
          "eTag": {
            "type": "string",
            "description": "Entity tag for the drive item."
          },
          "size": {
            "type": "integer",
            "description": "Size of the drive item in bytes."
          },
          "createdDateTime": {
            "type": "string",
            "description": "Creation timestamp for the drive item."
          },
          "lastModifiedDateTime": {
            "type": "string",
            "description": "Last modification timestamp for the drive item."
          },
          "createdBy": {
            "type": "object",
            "properties": {
              "user": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Unique identifier for the identity."
                  },
                  "displayName": {
                    "type": "string",
                    "description": "Display name for the identity."
                  }
                },
                "additionalProperties": true,
                "description": "Identity information returned by Microsoft Graph."
              },
              "application": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Unique identifier for the identity."
                  },
                  "displayName": {
                    "type": "string",
                    "description": "Display name for the identity."
                  }
                },
                "additionalProperties": true,
                "description": "Identity information returned by Microsoft Graph."
              },
              "device": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Unique identifier for the identity."
                  },
                  "displayName": {
                    "type": "string",
                    "description": "Display name for the identity."
                  }
                },
                "additionalProperties": true,
                "description": "Identity information returned by Microsoft Graph."
              }
            },
            "additionalProperties": true,
            "description": "Identity set returned by Microsoft Graph."
          },
          "lastModifiedBy": {
            "type": "object",
            "properties": {
              "user": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Unique identifier for the identity."
                  },
                  "displayName": {
                    "type": "string",
                    "description": "Display name for the identity."
                  }
                },
                "additionalProperties": true,
                "description": "Identity information returned by Microsoft Graph."
              },
              "application": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Unique identifier for the identity."
                  },
                  "displayName": {
                    "type": "string",
                    "description": "Display name for the identity."
                  }
                },
                "additionalProperties": true,
                "description": "Identity information returned by Microsoft Graph."
              },
              "device": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Unique identifier for the identity."
                  },
                  "displayName": {
                    "type": "string",
                    "description": "Display name for the identity."
                  }
                },
                "additionalProperties": true,
                "description": "Identity information returned by Microsoft Graph."
              }
            },
            "additionalProperties": true,
            "description": "Identity set returned by Microsoft Graph."
          },
          "parentReference": {
            "type": "object",
            "properties": {
              "driveId": {
                "type": "string",
                "description": "Drive ID of the referenced item."
              },
              "id": {
                "type": "string",
                "description": "Drive item ID of the referenced item."
              },
              "name": {
                "type": "string",
                "description": "Name of the referenced item."
              },
              "path": {
                "type": "string",
                "description": "Percent-encoded path of the referenced item."
              },
              "driveType": {
                "type": "string",
                "description": "Drive type of the referenced item."
              },
              "siteId": {
                "type": "string",
                "description": "Site ID of the referenced item."
              }
            },
            "additionalProperties": true,
            "description": "Reference to another drive item."
          },
          "file": {
            "type": "object",
            "properties": {
              "mimeType": {
                "type": "string",
                "description": "Detected MIME type for the file."
              },
              "hashes": {
                "type": "object",
                "additionalProperties": true,
                "description": "A generic JSON object returned by Microsoft Graph."
              }
            },
            "additionalProperties": true,
            "description": "File facet for a drive item."
          },
          "folder": {
            "type": "object",
            "properties": {
              "childCount": {
                "type": "integer",
                "description": "Number of direct child items."
              },
              "view": {
                "type": "object",
                "additionalProperties": true,
                "description": "A generic JSON object returned by Microsoft Graph."
              }
            },
            "additionalProperties": true,
            "description": "Folder facet for a drive item."
          },
          "root": {
            "type": "object",
            "additionalProperties": true,
            "description": "A generic JSON object returned by Microsoft Graph."
          },
          "deleted": {
            "type": "object",
            "additionalProperties": true,
            "description": "A generic JSON object returned by Microsoft Graph."
          },
          "fileSystemInfo": {
            "type": "object",
            "additionalProperties": true,
            "description": "A generic JSON object returned by Microsoft Graph."
          },
          "remoteItem": {
            "type": "object",
            "additionalProperties": true,
            "description": "A generic JSON object returned by Microsoft Graph."
          },
          "shared": {
            "type": "object",
            "additionalProperties": true,
            "description": "A generic JSON object returned by Microsoft Graph."
          },
          "specialFolder": {
            "type": "object",
            "additionalProperties": true,
            "description": "A generic JSON object returned by Microsoft Graph."
          },
          "searchResult": {
            "type": "object",
            "additionalProperties": true,
            "description": "A generic JSON object returned by Microsoft Graph."
          }
        },
        "additionalProperties": true,
        "description": "OneDrive drive item resource."
      }
    },
    {
      "id": "one_drive.update_item_metadata",
      "service": "one_drive",
      "name": "update_item_metadata",
      "description": "Rename, move, or update metadata for a drive item.",
      "requiredScopes": [
        "Files.ReadWrite"
      ],
      "providerPermissions": [
        "Files.ReadWrite"
      ],
      "inputSchema": {
        "type": "object",
        "properties": {
          "driveId": {
            "type": "string",
            "minLength": 1,
            "description": "Optional drive ID. Omit it to use the authenticated user's default OneDrive."
          },
          "itemId": {
            "type": "string",
            "minLength": 1,
            "description": "OneDrive drive item ID."
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "description": "New name for the drive item."
          },
          "description": {
            "type": "string",
            "minLength": 1,
            "description": "New description for the drive item."
          },
          "ifMatch": {
            "type": "string",
            "minLength": 1,
            "description": "Optional eTag used for conditional update requests."
          },
          "fileSystemInfo": {
            "type": "object",
            "properties": {
              "createdDateTime": {
                "type": "string",
                "description": "Client-side creation timestamp.",
                "format": "date-time"
              },
              "lastAccessedDateTime": {
                "type": "string",
                "description": "Client-side last-access timestamp.",
                "format": "date-time"
              },
              "lastModifiedDateTime": {
                "type": "string",
                "description": "Client-side last-modified timestamp.",
                "format": "date-time"
              }
            },
            "additionalProperties": false,
            "description": "Client-side file system timestamps."
          },
          "parentItemId": {
            "type": "string",
            "minLength": 1,
            "description": "OneDrive drive item ID."
          }
        },
        "additionalProperties": false,
        "required": [
          "itemId"
        ],
        "description": "OneDrive action input."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "description": "Drive item ID."
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "description": "Drive item name."
          },
          "webUrl": {
            "type": "string",
            "description": "Web URL for the drive item."
          },
          "description": {
            "type": "string",
            "description": "User-visible description for the drive item."
          },
          "cTag": {
            "type": "string",
            "description": "Content tag for the drive item."
          },
          "eTag": {
            "type": "string",
            "description": "Entity tag for the drive item."
          },
          "size": {
            "type": "integer",
            "description": "Size of the drive item in bytes."
          },
          "createdDateTime": {
            "type": "string",
            "description": "Creation timestamp for the drive item."
          },
          "lastModifiedDateTime": {
            "type": "string",
            "description": "Last modification timestamp for the drive item."
          },
          "createdBy": {
            "type": "object",
            "properties": {
              "user": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Unique identifier for the identity."
                  },
                  "displayName": {
                    "type": "string",
                    "description": "Display name for the identity."
                  }
                },
                "additionalProperties": true,
                "description": "Identity information returned by Microsoft Graph."
              },
              "application": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Unique identifier for the identity."
                  },
                  "displayName": {
                    "type": "string",
                    "description": "Display name for the identity."
                  }
                },
                "additionalProperties": true,
                "description": "Identity information returned by Microsoft Graph."
              },
              "device": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Unique identifier for the identity."
                  },
                  "displayName": {
                    "type": "string",
                    "description": "Display name for the identity."
                  }
                },
                "additionalProperties": true,
                "description": "Identity information returned by Microsoft Graph."
              }
            },
            "additionalProperties": true,
            "description": "Identity set returned by Microsoft Graph."
          },
          "lastModifiedBy": {
            "type": "object",
            "properties": {
              "user": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Unique identifier for the identity."
                  },
                  "displayName": {
                    "type": "string",
                    "description": "Display name for the identity."
                  }
                },
                "additionalProperties": true,
                "description": "Identity information returned by Microsoft Graph."
              },
              "application": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Unique identifier for the identity."
                  },
                  "displayName": {
                    "type": "string",
                    "description": "Display name for the identity."
                  }
                },
                "additionalProperties": true,
                "description": "Identity information returned by Microsoft Graph."
              },
              "device": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Unique identifier for the identity."
                  },
                  "displayName": {
                    "type": "string",
                    "description": "Display name for the identity."
                  }
                },
                "additionalProperties": true,
                "description": "Identity information returned by Microsoft Graph."
              }
            },
            "additionalProperties": true,
            "description": "Identity set returned by Microsoft Graph."
          },
          "parentReference": {
            "type": "object",
            "properties": {
              "driveId": {
                "type": "string",
                "description": "Drive ID of the referenced item."
              },
              "id": {
                "type": "string",
                "description": "Drive item ID of the referenced item."
              },
              "name": {
                "type": "string",
                "description": "Name of the referenced item."
              },
              "path": {
                "type": "string",
                "description": "Percent-encoded path of the referenced item."
              },
              "driveType": {
                "type": "string",
                "description": "Drive type of the referenced item."
              },
              "siteId": {
                "type": "string",
                "description": "Site ID of the referenced item."
              }
            },
            "additionalProperties": true,
            "description": "Reference to another drive item."
          },
          "file": {
            "type": "object",
            "properties": {
              "mimeType": {
                "type": "string",
                "description": "Detected MIME type for the file."
              },
              "hashes": {
                "type": "object",
                "additionalProperties": true,
                "description": "A generic JSON object returned by Microsoft Graph."
              }
            },
            "additionalProperties": true,
            "description": "File facet for a drive item."
          },
          "folder": {
            "type": "object",
            "properties": {
              "childCount": {
                "type": "integer",
                "description": "Number of direct child items."
              },
              "view": {
                "type": "object",
                "additionalProperties": true,
                "description": "A generic JSON object returned by Microsoft Graph."
              }
            },
            "additionalProperties": true,
            "description": "Folder facet for a drive item."
          },
          "root": {
            "type": "object",
            "additionalProperties": true,
            "description": "A generic JSON object returned by Microsoft Graph."
          },
          "deleted": {
            "type": "object",
            "additionalProperties": true,
            "description": "A generic JSON object returned by Microsoft Graph."
          },
          "fileSystemInfo": {
            "type": "object",
            "additionalProperties": true,
            "description": "A generic JSON object returned by Microsoft Graph."
          },
          "remoteItem": {
            "type": "object",
            "additionalProperties": true,
            "description": "A generic JSON object returned by Microsoft Graph."
          },
          "shared": {
            "type": "object",
            "additionalProperties": true,
            "description": "A generic JSON object returned by Microsoft Graph."
          },
          "specialFolder": {
            "type": "object",
            "additionalProperties": true,
            "description": "A generic JSON object returned by Microsoft Graph."
          },
          "searchResult": {
            "type": "object",
            "additionalProperties": true,
            "description": "A generic JSON object returned by Microsoft Graph."
          }
        },
        "additionalProperties": true,
        "description": "OneDrive drive item resource."
      }
    },
    {
      "id": "one_drive.upload_file",
      "service": "one_drive",
      "name": "upload_file",
      "description": "Upload one file to OneDrive, optionally creating destination folders on the way.",
      "requiredScopes": [
        "Files.ReadWrite"
      ],
      "providerPermissions": [
        "Files.ReadWrite"
      ],
      "inputSchema": {
        "type": "object",
        "properties": {
          "driveId": {
            "type": "string",
            "minLength": 1,
            "description": "Optional drive ID. Omit it to use the authenticated user's default OneDrive."
          },
          "folder": {
            "type": "string",
            "minLength": 1,
            "description": "Destination folder path starting with /, or a parent folder item ID."
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "description": "File name used for inline upload content."
          },
          "mimeType": {
            "type": "string",
            "minLength": 1,
            "description": "MIME type used for inline upload content."
          },
          "file": {
            "type": "object",
            "properties": {
              "fileId": {
                "type": "string",
                "minLength": 1,
                "description": "The transit file identifier returned by POST /api/files."
              },
              "name": {
                "type": "string",
                "minLength": 1,
                "description": "Optional filename override to send to the provider."
              },
              "mimeType": {
                "type": "string",
                "minLength": 1,
                "description": "Optional MIME type override to send to the provider."
              }
            },
            "additionalProperties": false,
            "required": [
              "fileId"
            ],
            "description": "File uploaded through POST /api/files."
          },
          "contentBase64": {
            "type": "string",
            "minLength": 1,
            "description": "Base64-encoded file content used for inline uploads."
          },
          "text": {
            "type": "string",
            "description": "Plain-text file content used for inline uploads."
          },
          "description": {
            "type": "string",
            "minLength": 1,
            "description": "Optional OneDrive file description."
          },
          "deferCommit": {
            "type": "boolean",
            "description": "Unsupported for now. Uploads are always committed immediately."
          },
          "ifMatch": {
            "type": "string",
            "minLength": 1,
            "description": "Optional eTag used for conditional upload session creation."
          },
          "fileSystemInfo": {
            "type": "object",
            "properties": {
              "createdDateTime": {
                "type": "string",
                "description": "Client-side creation timestamp.",
                "format": "date-time"
              },
              "lastAccessedDateTime": {
                "type": "string",
                "description": "Client-side last-access timestamp.",
                "format": "date-time"
              },
              "lastModifiedDateTime": {
                "type": "string",
                "description": "Client-side last-modified timestamp.",
                "format": "date-time"
              }
            },
            "additionalProperties": false,
            "description": "Client-side file system timestamps."
          },
          "conflictBehavior": {
            "type": "string",
            "enum": [
              "rename",
              "fail",
              "replace"
            ],
            "description": "Conflict behavior used when a file with the same name already exists."
          }
        },
        "additionalProperties": false,
        "description": "OneDrive action input."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "description": "Drive item ID."
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "description": "Drive item name."
          },
          "webUrl": {
            "type": "string",
            "description": "Web URL for the drive item."
          },
          "description": {
            "type": "string",
            "description": "User-visible description for the drive item."
          },
          "cTag": {
            "type": "string",
            "description": "Content tag for the drive item."
          },
          "eTag": {
            "type": "string",
            "description": "Entity tag for the drive item."
          },
          "size": {
            "type": "integer",
            "description": "Size of the drive item in bytes."
          },
          "createdDateTime": {
            "type": "string",
            "description": "Creation timestamp for the drive item."
          },
          "lastModifiedDateTime": {
            "type": "string",
            "description": "Last modification timestamp for the drive item."
          },
          "createdBy": {
            "type": "object",
            "properties": {
              "user": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Unique identifier for the identity."
                  },
                  "displayName": {
                    "type": "string",
                    "description": "Display name for the identity."
                  }
                },
                "additionalProperties": true,
                "description": "Identity information returned by Microsoft Graph."
              },
              "application": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Unique identifier for the identity."
                  },
                  "displayName": {
                    "type": "string",
                    "description": "Display name for the identity."
                  }
                },
                "additionalProperties": true,
                "description": "Identity information returned by Microsoft Graph."
              },
              "device": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Unique identifier for the identity."
                  },
                  "displayName": {
                    "type": "string",
                    "description": "Display name for the identity."
                  }
                },
                "additionalProperties": true,
                "description": "Identity information returned by Microsoft Graph."
              }
            },
            "additionalProperties": true,
            "description": "Identity set returned by Microsoft Graph."
          },
          "lastModifiedBy": {
            "type": "object",
            "properties": {
              "user": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Unique identifier for the identity."
                  },
                  "displayName": {
                    "type": "string",
                    "description": "Display name for the identity."
                  }
                },
                "additionalProperties": true,
                "description": "Identity information returned by Microsoft Graph."
              },
              "application": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Unique identifier for the identity."
                  },
                  "displayName": {
                    "type": "string",
                    "description": "Display name for the identity."
                  }
                },
                "additionalProperties": true,
                "description": "Identity information returned by Microsoft Graph."
              },
              "device": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Unique identifier for the identity."
                  },
                  "displayName": {
                    "type": "string",
                    "description": "Display name for the identity."
                  }
                },
                "additionalProperties": true,
                "description": "Identity information returned by Microsoft Graph."
              }
            },
            "additionalProperties": true,
            "description": "Identity set returned by Microsoft Graph."
          },
          "parentReference": {
            "type": "object",
            "properties": {
              "driveId": {
                "type": "string",
                "description": "Drive ID of the referenced item."
              },
              "id": {
                "type": "string",
                "description": "Drive item ID of the referenced item."
              },
              "name": {
                "type": "string",
                "description": "Name of the referenced item."
              },
              "path": {
                "type": "string",
                "description": "Percent-encoded path of the referenced item."
              },
              "driveType": {
                "type": "string",
                "description": "Drive type of the referenced item."
              },
              "siteId": {
                "type": "string",
                "description": "Site ID of the referenced item."
              }
            },
            "additionalProperties": true,
            "description": "Reference to another drive item."
          },
          "file": {
            "type": "object",
            "properties": {
              "mimeType": {
                "type": "string",
                "description": "Detected MIME type for the file."
              },
              "hashes": {
                "type": "object",
                "additionalProperties": true,
                "description": "A generic JSON object returned by Microsoft Graph."
              }
            },
            "additionalProperties": true,
            "description": "File facet for a drive item."
          },
          "folder": {
            "type": "object",
            "properties": {
              "childCount": {
                "type": "integer",
                "description": "Number of direct child items."
              },
              "view": {
                "type": "object",
                "additionalProperties": true,
                "description": "A generic JSON object returned by Microsoft Graph."
              }
            },
            "additionalProperties": true,
            "description": "Folder facet for a drive item."
          },
          "root": {
            "type": "object",
            "additionalProperties": true,
            "description": "A generic JSON object returned by Microsoft Graph."
          },
          "deleted": {
            "type": "object",
            "additionalProperties": true,
            "description": "A generic JSON object returned by Microsoft Graph."
          },
          "fileSystemInfo": {
            "type": "object",
            "additionalProperties": true,
            "description": "A generic JSON object returned by Microsoft Graph."
          },
          "remoteItem": {
            "type": "object",
            "additionalProperties": true,
            "description": "A generic JSON object returned by Microsoft Graph."
          },
          "shared": {
            "type": "object",
            "additionalProperties": true,
            "description": "A generic JSON object returned by Microsoft Graph."
          },
          "specialFolder": {
            "type": "object",
            "additionalProperties": true,
            "description": "A generic JSON object returned by Microsoft Graph."
          },
          "searchResult": {
            "type": "object",
            "additionalProperties": true,
            "description": "A generic JSON object returned by Microsoft Graph."
          }
        },
        "additionalProperties": true,
        "description": "OneDrive drive item resource."
      }
    }
  ]
}
