MCPFerramentas MCP/Localizações/delete_location_media

delete_location_media

Writelocations:write

Remove photos from a location. Pass `urls` to delete specific photos, or `category` to clear a whole category. The logo cannot be deleted — upload a new LOGO image to replace it instead. Photos Synup itself put on Google or Facebook are removed there too; photos imported from Google, or added there by the owner, stay on Google. A link that isn't one of the location's photos is not deleted: when none match, the call fails and says so, and otherwise `notFound` lists the ones that didn't — never tell the user those were deleted. An archived location can't be changed. You don't pass an agency — it comes from your credentials.

Parâmetros
locationIdstringobrigatório
The id of the location to remove photos from. Accepts the database ID or public loc- ID. IDs must belong to the authenticated agency and permitted client.
urlsstring[]opcional
Specific photo URLs to remove (from get_location_media).
category"COVER" | "PROFILE" | "EXTERIOR" | "INTERIOR" | "PRODUCT" | "FOOD_AND_DRINK" | "MENU" | "AT_WORK" | "TEAMS" | "ROOMS" | "COMMON_AREA" | "ADDITIONAL"opcional
Clear every photo in this category. Allowed values: COVER, PROFILE, EXTERIOR, INTERIOR, PRODUCT, FOOD_AND_DRINK, MENU, AT_WORK, TEAMS, ROOMS, COMMON_AREA, ADDITIONAL.
Exemplo de solicitação
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "delete_location_media",
    "arguments": {
      "locationId": "string"
    }
  }
}
Exemplo de resposta
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "..."
      }
    ]
  }
}

O formato da resposta é ilustrativo — o conteúdo real depende da ferramenta e dos seus dados.