MCPMCP Tools/Locations/upload_location_media

upload_location_media

Writelocations:write

Add one or more photos to a location, in a given category. Provide each image as a public https URL (we fetch and re-host it) or as base64 bytes. Only images are supported (jpeg, png, gif, webp), max 5 MB each. The LOGO category holds a single logo — uploading to LOGO replaces the current logo. All other categories append. Saved photos are automatically queued to publish to Google. You don't pass an agency — it comes from your credentials.

Parameters
locationIdstringrequired
The id of the location to add photos to.
category"COVER" | "PROFILE" | "LOGO" | "EXTERIOR" | "INTERIOR" | "PRODUCT" | "FOOD_AND_DRINK" | "MENU" | "AT_WORK" | "TEAMS" | "ROOMS" | "COMMON_AREA" | "ADDITIONAL"required
The photo category. Allowed values: COVER, PROFILE, LOGO, EXTERIOR, INTERIOR, PRODUCT, FOOD_AND_DRINK, MENU, AT_WORK, TEAMS, ROOMS, COMMON_AREA, ADDITIONAL.
imagesobject[]required
One or more images to add. Each needs a url or base64.
urlstringoptional
A public https URL to the image — it is fetched and re-hosted by us.
base64stringoptional
The image bytes as base64 (a data: URL prefix is accepted). Use this instead of url when you have the bytes.
labelstringoptional
Optional caption/label for the photo.
Example request
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "upload_location_media",
    "arguments": {
      "locationId": "string",
      "category": "COVER",
      "images": [
        {}
      ]
    }
  }
}
Example response
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "..."
      }
    ]
  }
}

Response shape shown for illustration — the actual content depends on the tool and your data.