Перейти к содержимому
LegalStack

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

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

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

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

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

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

Параметры

ПараметрТипОбязательныйОписание
cloudstringдаCloud storage. Значения: Google Диск, Dropbox, Яндекс Диск.
namestringдаName of the folder. Длина: 1–255.
parentstringнетFolder id for Google Drive, folder path for other clouds, the root by default. Длина: 1–2000.
JSON Schema параметров
{
  "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
}

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

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

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

Параметры

ПараметрТипОбязательныйОписание
cloudstringдаCloud storage. Значения: Dropbox, Яндекс Диск.
filestringдаFull path of the file or folder. Длина: 1–2000.
JSON Schema параметров
{
  "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
}

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

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.

Параметры

ПараметрТипОбязательныйОписание
cloudstringдаCloud storage. Значения: Google Диск, Dropbox, Яндекс Диск.
filestringдаFile id for Google Drive, full path for Dropbox and Yandex Disk. Длина: 1–2000.
JSON Schema параметров
{
  "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
}

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

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.

Параметры

ПараметрТипОбязательныйОписание
cloudstringдаCloud storage. Значения: Google Диск, Dropbox, Яндекс Диск.
folderstringнетFolder id for Google Drive, folder path for other clouds, the root by default. Длина: 1–2000.
querystringнетPart of the file name. Длина: 1–200.
pagestringнетnext_page from the previous answer. Длина: 1–4000.
JSON Schema параметров
{
  "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
}

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

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

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

Параметры

ПараметрТипОбязательныйОписание
cloudstringдаCloud storage. Значения: Dropbox, Яндекс Диск.
filestringдаCurrent full path of the file or folder. Длина: 1–2000.
tostringдаNew full path, a new name in the same folder renames. Длина: 1–2000.
JSON Schema параметров
{
  "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
}

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

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.

Параметры

ПараметрТипОбязательныйОписание
cloudstringдаCloud storage. Значения: Google Диск, Dropbox, Яндекс Диск.
pathstringдаPath of the file in the working folder. Длина: 1–1000.
folderstringнетFolder id for Google Drive, folder path for other clouds, the root by default. Длина: 1–2000.
replacebooleanнетTrue replaces a file with the same name in Dropbox or Yandex Disk.
JSON Schema параметров
{
  "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
}

На этой странице