# Облачные хранилища

> Инструменты раздела «Облачные хранилища»: 6

Подключение: `https://mcp.legalstack.ru/mcp/cloud` или в составе общего подключения `https://mcp.legalstack.ru/mcp`.

## Создать папку в облаке

`create_cloud_folder` · изменяет данные

Описание для модели: Create a folder in a cloud storage.

**Параметры**

| Параметр | Тип | Обязательный | Описание |
| --- | --- | --- | --- |
| `cloud` | string | да | Cloud storage. Значения: `Google Диск`, `Dropbox`, `Яндекс Диск`. |
| `name` | string | да | Name of the folder. Длина: 1–255. |
| `parent` | string | нет | Folder id for Google Drive, folder path for other clouds, the root by default. Длина: 1–2000. |

<details>
<summary>JSON Schema параметров</summary>

```json
{
  "type": "object",
  "properties": {
    "cloud": {
      "type": "string",
      "enum": [
        "Google Диск",
        "Dropbox",
        "Яндекс Диск"
      ],
      "description": "Cloud storage"
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255,
      "description": "Name of the folder"
    },
    "parent": {
      "description": "Folder id for Google Drive, folder path for other clouds, the root by default",
      "type": "string",
      "minLength": 1,
      "maxLength": 2000
    }
  },
  "required": [
    "cloud",
    "name"
  ],
  "additionalProperties": false
}
```

</details>

## Удалить файл в облаке

`delete_cloud_file` · необратимое действие

Описание для модели: Delete a file or folder in Dropbox or Yandex Disk. A deleted folder takes all its content with it.

**Параметры**

| Параметр | Тип | Обязательный | Описание |
| --- | --- | --- | --- |
| `cloud` | string | да | Cloud storage. Значения: `Dropbox`, `Яндекс Диск`. |
| `file` | string | да | Full path of the file or folder. Длина: 1–2000. |

<details>
<summary>JSON Schema параметров</summary>

```json
{
  "type": "object",
  "properties": {
    "cloud": {
      "type": "string",
      "enum": [
        "Dropbox",
        "Яндекс Диск"
      ],
      "description": "Cloud storage"
    },
    "file": {
      "type": "string",
      "minLength": 1,
      "maxLength": 2000,
      "description": "Full path of the file or folder"
    }
  },
  "required": [
    "cloud",
    "file"
  ],
  "additionalProperties": false
}
```

</details>

## Скачать файл из облака

`download_cloud_file` · изменяет данные · только для агентов платформы

Описание для модели: Download a file from a cloud into the working folder. Google Docs and Sheets come as DOCX and XLSX. Read a PDF or DOCX afterwards with extract_file_text.

**Параметры**

| Параметр | Тип | Обязательный | Описание |
| --- | --- | --- | --- |
| `cloud` | string | да | Cloud storage. Значения: `Google Диск`, `Dropbox`, `Яндекс Диск`. |
| `file` | string | да | File id for Google Drive, full path for Dropbox and Yandex Disk. Длина: 1–2000. |

<details>
<summary>JSON Schema параметров</summary>

```json
{
  "type": "object",
  "properties": {
    "cloud": {
      "type": "string",
      "enum": [
        "Google Диск",
        "Dropbox",
        "Яндекс Диск"
      ],
      "description": "Cloud storage"
    },
    "file": {
      "type": "string",
      "minLength": 1,
      "maxLength": 2000,
      "description": "File id for Google Drive, full path for Dropbox and Yandex Disk"
    }
  },
  "required": [
    "cloud",
    "file"
  ],
  "additionalProperties": false
}
```

</details>

## Файлы в облаке

`list_cloud_files` · только чтение

Описание для модели: List files and folders of a connected cloud storage. The file field is the handle for other cloud tools. When next_page is set pass it as page for the rest. In Dropbox and Yandex Disk the query filters the returned page.

**Параметры**

| Параметр | Тип | Обязательный | Описание |
| --- | --- | --- | --- |
| `cloud` | string | да | Cloud storage. Значения: `Google Диск`, `Dropbox`, `Яндекс Диск`. |
| `folder` | string | нет | Folder id for Google Drive, folder path for other clouds, the root by default. Длина: 1–2000. |
| `query` | string | нет | Part of the file name. Длина: 1–200. |
| `page` | string | нет | next_page from the previous answer. Длина: 1–4000. |

<details>
<summary>JSON Schema параметров</summary>

```json
{
  "type": "object",
  "properties": {
    "cloud": {
      "type": "string",
      "enum": [
        "Google Диск",
        "Dropbox",
        "Яндекс Диск"
      ],
      "description": "Cloud storage"
    },
    "folder": {
      "description": "Folder id for Google Drive, folder path for other clouds, the root by default",
      "type": "string",
      "minLength": 1,
      "maxLength": 2000
    },
    "query": {
      "description": "Part of the file name",
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "page": {
      "description": "next_page from the previous answer",
      "type": "string",
      "minLength": 1,
      "maxLength": 4000
    }
  },
  "required": [
    "cloud"
  ],
  "additionalProperties": false
}
```

</details>

## Переместить файл в облаке

`move_cloud_file` · изменяет данные

Описание для модели: Move or rename a file or folder in Dropbox or Yandex Disk.

**Параметры**

| Параметр | Тип | Обязательный | Описание |
| --- | --- | --- | --- |
| `cloud` | string | да | Cloud storage. Значения: `Dropbox`, `Яндекс Диск`. |
| `file` | string | да | Current full path of the file or folder. Длина: 1–2000. |
| `to` | string | да | New full path, a new name in the same folder renames. Длина: 1–2000. |

<details>
<summary>JSON Schema параметров</summary>

```json
{
  "type": "object",
  "properties": {
    "cloud": {
      "type": "string",
      "enum": [
        "Dropbox",
        "Яндекс Диск"
      ],
      "description": "Cloud storage"
    },
    "file": {
      "type": "string",
      "minLength": 1,
      "maxLength": 2000,
      "description": "Current full path of the file or folder"
    },
    "to": {
      "type": "string",
      "minLength": 1,
      "maxLength": 2000,
      "description": "New full path, a new name in the same folder renames"
    }
  },
  "required": [
    "cloud",
    "file",
    "to"
  ],
  "additionalProperties": false
}
```

</details>

## Загрузить файл в облако

`upload_cloud_file` · изменяет данные · только для агентов платформы

Описание для модели: Upload a file of the working folder to a cloud. A file with the same name gets a new name unless replace is true.

**Параметры**

| Параметр | Тип | Обязательный | Описание |
| --- | --- | --- | --- |
| `cloud` | string | да | Cloud storage. Значения: `Google Диск`, `Dropbox`, `Яндекс Диск`. |
| `path` | string | да | Path of the file in the working folder. Длина: 1–1000. |
| `folder` | string | нет | Folder id for Google Drive, folder path for other clouds, the root by default. Длина: 1–2000. |
| `replace` | boolean | нет | True replaces a file with the same name in Dropbox or Yandex Disk. |

<details>
<summary>JSON Schema параметров</summary>

```json
{
  "type": "object",
  "properties": {
    "cloud": {
      "type": "string",
      "enum": [
        "Google Диск",
        "Dropbox",
        "Яндекс Диск"
      ],
      "description": "Cloud storage"
    },
    "path": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1000,
      "description": "Path of the file in the working folder"
    },
    "folder": {
      "description": "Folder id for Google Drive, folder path for other clouds, the root by default",
      "type": "string",
      "minLength": 1,
      "maxLength": 2000
    },
    "replace": {
      "description": "True replaces a file with the same name in Dropbox or Yandex Disk",
      "type": "boolean"
    }
  },
  "required": [
    "cloud",
    "path"
  ],
  "additionalProperties": false
}
```

</details>
