Change gallery privacy

Set the visibility and access of a gallery or folder.

MCP tool smugmug_write → set_gallery_privacy

write Confirm

Changes who can open the gallery and returns how many galleries changed. Unlisted hides a gallery from navigation and search but anyone with the link can open it. A Private folder makes everything inside it Private. Updating direct image URLs stops every direct link shared before and cannot be undone. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: set_gallery_privacy
NameTypeDescription
gallery_id string required string Gallery or folder ID from list_galleries.
visibility string string One of 'public', 'unlisted' or 'private'.
access string string One of 'password' or 'people_i_choose'. For people_i_choose, add people with invite_gallery_viewers.
password string string Gallery password. Required with access password.
password_hint string string Hint shown to visitors.
include_galleries_inside boolean boolean For a folder: apply the setting to every gallery inside it, at any depth. Default false.
update_direct_image_urls boolean boolean When switching to private: invalidate direct image links shared before. Irreversible. Default false.

tools/call

JSON-RPC

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "smugmug_write",
    "arguments": {
      "operation": "set_gallery_privacy",
      "arguments": {
        "gallery_id": "Xk4RtP",
        "visibility": "private"
      }
    }
  }
}

Example response

JSON

{
  "content": [
    {
      "type": "text",
      "text": "{ ... same JSON as structuredContent ... }"
    }
  ],
  "structuredContent": {
    "gallery_id": "Xk4RtP",
    "title": "Smith wedding",
    "visibility": "private",
    "galleries_changed": 1,
    "direct_image_urls_updated": false
  },
  "isError": false
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.