MCPMCP-Tools/Medien/publish_asset
publish_asset
Writemedia:write
Publish an existing media asset to 1–25 selected locations on Google and/or Facebook. Returns per-location/platform outcomes, including partial failures. Requires an identified agency user and access to every selected location. This makes the media live on the selected listings.
Parameter
assetKeystringerforderlich
Asset key from list_assets.
locationIdsstring[]erforderlich
1–25 location IDs.
platforms("google" | "facebook")[]erforderlich
categorystringoptional
Optional Google media category; the asset's media-category tag takes precedence.
Beispielanfrage
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "publish_asset",
"arguments": {
"assetKey": "string",
"locationIds": [
"string"
],
"platforms": [
"google"
]
}
}
}Beispielantwort
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"content": [
{
"type": "text",
"text": "..."
}
]
}
}Die Antwortform dient nur zur Veranschaulichung — der tatsächliche Inhalt hängt vom Tool und Ihren Daten ab.