MCPMCP-Tools/Medien/get_asset

get_asset

Readmedia:read

Get one media-library asset by its key (e.g. "upload:abc123", from list_assets): title, type, size, tags, folders, the locations it is associated with and published to, and a ready-to-use url. Use it to check an asset before editing, tagging or reusing it.

Parameter
assetKeystringerforderlich
The asset's key, e.g. "upload:abc123" (required). For uploads, accepts upload:<database ID> or upload:up-<public ID>. Other asset sources retain their existing keys. IDs must belong to the authenticated agency and permitted client.
Beispielanfrage
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_asset",
    "arguments": {
      "assetKey": "string"
    }
  }
}
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.