{
  "id": "share.create_link",
  "object": "tool",
  "name": "Share a file",
  "summary": "A public download link.",
  "description": "Creates a public download link for a file in this workspace, with an expiry, an optional download limit and filename. The file is kept at least as long as the link. The URL is shown once; revoke it with share.revoke.",
  "category": "files",
  "hosted_by": "Opentools",
  "runtime": "worker",
  "side_effects": true,
  "status": "live",
  "credits": 1,
  "price": "$0.0010",
  "providers": [
    {
      "id": "opentools",
      "name": "Opentools",
      "price": "$0.0010"
    }
  ],
  "mcp_name": "share_create_link",
  "input_schema": {
    "type": "object",
    "properties": {
      "file_id": {
        "type": "string",
        "format": "uuid",
        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
        "description": "A file id from an upload or a tool's output"
      },
      "expires_in_hours": {
        "default": 72,
        "description": "Hours until it expires (max 720)",
        "type": "integer",
        "minimum": 1,
        "maximum": 720
      },
      "max_downloads": {
        "description": "Stop working after this many downloads",
        "type": "integer",
        "minimum": 1,
        "maximum": 10000
      },
      "filename": {
        "description": "Download under this name",
        "type": "string",
        "maxLength": 120
      }
    },
    "required": [
      "file_id"
    ]
  },
  "kind": "tool"
}