{
  "id": "storage.import",
  "object": "tool",
  "name": "Import from storage",
  "summary": "Copy files from storage into Opentools.",
  "description": "Copies one or many files from a storage connection into Opentools, by path or by everything under a folder (recursively, up to 1,000 files and 100 MB per run). The run's output files have ids you can pass to any tool as { file_id }. To use a single file once, you can also pass { connection, path } straight to a tool instead.",
  "category": "files",
  "hosted_by": "Opentools",
  "runtime": "worker",
  "side_effects": false,
  "status": "live",
  "credits": 1,
  "price": "$0.0010",
  "providers": [
    {
      "id": "opentools",
      "name": "Opentools",
      "price": "$0.0010"
    }
  ],
  "mcp_name": "storage_import",
  "input_schema": {
    "type": "object",
    "properties": {
      "connection": {
        "type": "string",
        "minLength": 1,
        "maxLength": 64,
        "description": "A connection id or name from storage.connections. Connections are added in the app or with POST /v1/connections"
      },
      "paths": {
        "description": "File paths to copy, e.g. ['reports/q3.pdf']",
        "minItems": 1,
        "maxItems": 1000,
        "type": "array",
        "items": {
          "type": "string",
          "minLength": 1,
          "maxLength": 1024
        }
      },
      "prefix": {
        "description": "Copy every file under this folder instead, e.g. \"scans/2026-10\" (\"\" for everything)",
        "type": "string",
        "maxLength": 1024
      },
      "extensions": {
        "description": "With prefix: only these extensions, e.g. [\"pdf\", \"docx\"]",
        "maxItems": 30,
        "type": "array",
        "items": {
          "type": "string",
          "pattern": "^[A-Za-z0-9]{1,10}$"
        }
      },
      "max_files": {
        "default": 1000,
        "description": "With prefix: stop after this many files",
        "type": "integer",
        "minimum": 1,
        "maximum": 1000
      }
    },
    "required": [
      "connection"
    ]
  },
  "kind": "tool"
}