MCP-Tool
Asset-Importstatus abrufen
sosoapi_get_asset_import_statusLies einen Import anhand von import_id. Übergib zum Veröffentlichen include_asset=true: Ein ready-Ergebnis enthält registrierte Asset-id, kind und stabile asset_url und vermeidet ein separates get_asset. Ausstehende oder fehlende Assets lassen sich nicht planen. Nutze niemals Quell- oder Vorschau-URL als Medienidentität. Lies bei Stillstand sosoapi_job_status mit job_id; starte niemals einen doppelten Import.
Als Markdown lesenProfile und Transporte
Profile: core, full · Transporte: stdio, http
Wähle core oder full für die sichtbaren Tools deines Clients; dies ändert keine Berechtigungen. Lokaler Dateiupload benötigt stdio und ist über HTTP nicht verfügbar. Setze SOSOAPI_OUTPUT_SCHEMAS=1 für Ausgabeschemas in der Erkennung. Tools liefern unabhängig davon strukturierte Ergebnisse.
Berechtigungen und Nebeneffekte
Annotationen helfen Clients, Tools zu beschreiben. Jeder Aufruf prüft weiterhin Authentifizierung, Rolle, Ressourcenzugriff und erteilte Funktionen des Nutzers.
{
"readOnlyHint": true,
"destructiveHint": false,
"idempotentHint": true,
"openWorldHint": false
}- /assets-api/imports/status: agent:operate · synchronous_http_response
Eingabefelder
Erforderlich bedeutet innerhalb des übergeordneten Objekts und gewählten Zweigs erforderlich. Ein erforderliches Kind macht kein optionales Elternobjekt erforderlich. Regeln und Feldnamen unten stammen aus dem Vertrag.
| Feld / Variante | Typ / erforderlich | Einschränkungen |
|---|---|---|
$ | objectIm Elternobjekt erforderlich |
|
workspace_id | stringIm Elternobjekt erforderlich |
|
import_id | stringIm Elternobjekt erforderlich |
|
include_asset | booleanOptional / Element | — |
Vollständiges JSON Schema
{
"type": "object",
"properties": {
"workspace_id": {
"type": "string",
"format": "uuid"
},
"import_id": {
"type": "string",
"format": "uuid"
},
"include_asset": {
"type": "boolean"
}
},
"required": [
"workspace_id",
"import_id"
],
"additionalProperties": false
}Strukturierte Ausgabe
Dieses Schema beschreibt structuredContent in einem erfolgreichen Tool-Ergebnis. Die MCP-Antwort enthält auch content und kann bei fehlgeschlagenem Aufruf isError setzen. Lies bei Veröffentlichungen das endgültige Beitragsergebnis, statt eine angenommene Anfrage oder Textantwort als Bestätigung zu werten. Die verknüpfte API-Operation erklärt Berechtigungen und Wiederholungsregeln.
Erforderlich bedeutet innerhalb des übergeordneten Objekts und gewählten Zweigs erforderlich. Ein erforderliches Kind macht kein optionales Elternobjekt erforderlich. Regeln und Feldnamen unten stammen aus dem Vertrag.
| Feld / Variante | Typ / erforderlich | Einschränkungen |
|---|---|---|
$ | objectIm Elternobjekt erforderlich |
|
import | objectIm Elternobjekt erforderlich |
|
import.id | stringIm Elternobjekt erforderlich |
|
import.status | stringIm Elternobjekt erforderlich |
|
import.job_id | string | nullIm Elternobjekt erforderlich | — |
import.job_idanyOf 1 | stringIm Elternobjekt erforderlich |
|
import.job_idanyOf 2 | nullIm Elternobjekt erforderlich | — |
import.asset_id | integer | nullIm Elternobjekt erforderlich | — |
import.asset_idanyOf 1 | integerIm Elternobjekt erforderlich |
|
import.asset_idanyOf 2 | nullIm Elternobjekt erforderlich | — |
import.completed_asset_id | integer | nullIm Elternobjekt erforderlich | — |
import.completed_asset_idanyOf 1 | integerIm Elternobjekt erforderlich |
|
import.completed_asset_idanyOf 2 | nullIm Elternobjekt erforderlich | — |
import.asset_purged_at | string | nullIm Elternobjekt erforderlich | — |
import.asset_purged_atanyOf 1 | stringIm Elternobjekt erforderlich | — |
import.asset_purged_atanyOf 2 | nullIm Elternobjekt erforderlich | — |
import.source_url | stringIm Elternobjekt erforderlich |
|
import.final_url | string | nullIm Elternobjekt erforderlich | — |
import.final_urlanyOf 1 | stringIm Elternobjekt erforderlich |
|
import.final_urlanyOf 2 | nullIm Elternobjekt erforderlich | — |
import.object_key | string | nullIm Elternobjekt erforderlich | — |
import.object_keyanyOf 1 | stringIm Elternobjekt erforderlich |
|
import.object_keyanyOf 2 | nullIm Elternobjekt erforderlich | — |
import.content_type | string | nullIm Elternobjekt erforderlich | — |
import.content_typeanyOf 1 | stringIm Elternobjekt erforderlich |
|
import.content_typeanyOf 2 | nullIm Elternobjekt erforderlich | — |
import.byte_size | integer | nullIm Elternobjekt erforderlich | — |
import.byte_sizeanyOf 1 | integerIm Elternobjekt erforderlich |
|
import.byte_sizeanyOf 2 | nullIm Elternobjekt erforderlich | — |
import.content_sha256 | string | nullIm Elternobjekt erforderlich | — |
import.content_sha256anyOf 1 | stringIm Elternobjekt erforderlich |
|
import.content_sha256anyOf 2 | nullIm Elternobjekt erforderlich | — |
import.media_probe | reference | nullIm Elternobjekt erforderlich | — |
import.media_probeanyOf 1 | string | number | boolean | null | array | objectIm Elternobjekt erforderlich | — |
import.media_probeanyOf 1 / anyOf 1 | stringIm Elternobjekt erforderlich | — |
import.media_probeanyOf 1 / anyOf 2 | numberIm Elternobjekt erforderlich | — |
import.media_probeanyOf 1 / anyOf 3 | booleanIm Elternobjekt erforderlich | — |
import.media_probeanyOf 1 / anyOf 4 | nullIm Elternobjekt erforderlich | — |
import.media_probeanyOf 1 / anyOf 5 | arrayIm Elternobjekt erforderlich | — |
import.media_probe[]anyOf 1 / anyOf 5 | referenceOptional / Element |
|
import.media_probeanyOf 1 / anyOf 6 | objectIm Elternobjekt erforderlich |
|
import.media_probe.*anyOf 1 / anyOf 6 | referenceOptional / Element |
|
import.media_probeanyOf 2 | nullIm Elternobjekt erforderlich | — |
import.error_message | string | nullIm Elternobjekt erforderlich | — |
import.error_messageanyOf 1 | stringIm Elternobjekt erforderlich | — |
import.error_messageanyOf 2 | nullIm Elternobjekt erforderlich | — |
import.created_at | stringIm Elternobjekt erforderlich | — |
import.completed_at | string | nullIm Elternobjekt erforderlich | — |
import.completed_atanyOf 1 | stringIm Elternobjekt erforderlich | — |
import.completed_atanyOf 2 | nullIm Elternobjekt erforderlich | — |
asset | object | nullOptional / Element | — |
assetanyOf 1 | objectOptional / Element |
|
asset.idanyOf 1 | integer | stringIm Elternobjekt erforderlich | — |
asset.idanyOf 1 / anyOf 1 | integerIm Elternobjekt erforderlich |
|
asset.idanyOf 1 / anyOf 2 | stringIm Elternobjekt erforderlich | — |
asset.asset_typeanyOf 1 | stringIm Elternobjekt erforderlich |
|
asset.asset_urlanyOf 1 | string | nullIm Elternobjekt erforderlich | — |
asset.asset_urlanyOf 1 / anyOf 1 | stringIm Elternobjekt erforderlich | — |
asset.asset_urlanyOf 1 / anyOf 2 | nullIm Elternobjekt erforderlich | — |
assetanyOf 2 | nullOptional / Element | — |
Vollständiges JSON Schema
{
"type": "object",
"properties": {
"import": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"status": {
"type": "string",
"enum": [
"queued",
"importing",
"needs_repair",
"ready",
"asset_purged",
"failed"
]
},
"job_id": {
"anyOf": [
{
"type": "string",
"format": "uuid"
},
{
"type": "null"
}
]
},
"asset_id": {
"anyOf": [
{
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"completed_asset_id": {
"anyOf": [
{
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"asset_purged_at": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"source_url": {
"type": "string",
"format": "uri"
},
"final_url": {
"anyOf": [
{
"type": "string",
"format": "uri"
},
{
"type": "null"
}
]
},
"object_key": {
"anyOf": [
{
"type": "string",
"minLength": 1
},
{
"type": "null"
}
]
},
"content_type": {
"anyOf": [
{
"type": "string",
"minLength": 1
},
{
"type": "null"
}
]
},
"byte_size": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"content_sha256": {
"anyOf": [
{
"type": "string",
"pattern": "^[0-9a-f]{64}$"
},
{
"type": "null"
}
]
},
"media_probe": {
"anyOf": [
{
"$ref": "#/definitions/__schema0"
},
{
"type": "null"
}
]
},
"error_message": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"created_at": {
"type": "string"
},
"completed_at": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"status",
"job_id",
"asset_id",
"completed_asset_id",
"asset_purged_at",
"source_url",
"final_url",
"object_key",
"content_type",
"byte_size",
"content_sha256",
"media_probe",
"error_message",
"created_at",
"completed_at"
],
"additionalProperties": false
},
"asset": {
"anyOf": [
{
"type": "object",
"properties": {
"id": {
"anyOf": [
{
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
{
"type": "string"
}
]
},
"asset_type": {
"type": "string",
"enum": [
"text",
"image",
"video",
"audio"
]
},
"asset_url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"asset_type",
"asset_url"
],
"additionalProperties": false
},
{
"type": "null"
}
]
}
},
"required": [
"import"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"definitions": {
"__schema0": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "null"
},
{
"type": "array",
"items": {
"$ref": "#/definitions/__schema0"
}
},
{
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"$ref": "#/definitions/__schema0"
}
}
]
}
}
}Beispiel eines Tool-Aufrufs
Diese Beispiele nutzen anhand der Schemas geprüfte fiktive Werte. Ersetze IDs durch autorisierte IDs, Medien durch bereite Assets und Daten durch bestätigte Veröffentlichungszeiten. Prüfe Kontoeignung vor Schreibvorgängen. Diese Seite sendet keine API-Anfragen.
{
"name": "sosoapi_get_asset_import_status",
"arguments": {
"workspace_id": "11111111-1111-4111-8111-111111111111",
"import_id": "11111111-1111-4111-8111-111111111111"
}
}structuredContent
{
"import": {
"id": "11111111-1111-4111-8111-111111111111",
"status": "queued",
"job_id": null,
"asset_id": null,
"completed_asset_id": null,
"asset_purged_at": null,
"source_url": "https://example.com/media.png",
"final_url": null,
"object_key": null,
"content_type": null,
"byte_size": null,
"content_sha256": null,
"media_probe": null,
"error_message": null,
"created_at": "example",
"completed_at": null
}
}