MCPHerramientas MCP/Ubicaciones/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.
Parámetros
locationIdstringobligatorio
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"obligatorio
The photo category. Allowed values: COVER, PROFILE, LOGO, EXTERIOR, INTERIOR, PRODUCT, FOOD_AND_DRINK, MENU, AT_WORK, TEAMS, ROOMS, COMMON_AREA, ADDITIONAL.
imagesobject[]obligatorio
One or more images to add. Each needs a url or base64.
urlstringopcional
A public https URL to the image — it is fetched and re-hosted by us.
base64stringopcional
The image bytes as base64 (a data: URL prefix is accepted). Use this instead of url when you have the bytes.
labelstringopcional
Optional caption/label for the photo.
Solicitud de ejemplo
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "upload_location_media",
"arguments": {
"locationId": "string",
"category": "COVER",
"images": [
{}
]
}
}
}Respuesta de ejemplo
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"content": [
{
"type": "text",
"text": "..."
}
]
}
}La forma de la respuesta se muestra a modo ilustrativo — el contenido real depende de la herramienta y de tus datos.