La recherche se charge uniquement lorsque vous l’utilisez. Parcourez toutes les catégories ci-dessous.

Outil MCP

Obtenir le statut d’importation d’une ressource

sosoapi_get_asset_import_status

Lire une importation par import_id. Pour publier, fournir include_asset=true : un résultat ready inclut l’identifiant de ressource enregistré, kind et l’asset_url stable, évitant un get_asset distinct. Une ressource en attente ou manquante ne peut pas être programmée. N’utilisez jamais l’URL source ou d’aperçu comme identité du média. En cas de blocage, lire sosoapi_job_status avec job_id ; ne lancez jamais d’importation en double.

Lire en Markdown

Profils et transports

Profils : core, full · Transports : stdio, http

Choisissez core ou full pour définir les outils visibles du client ; cela ne change pas ses autorisations. Le téléversement local nécessite stdio et n’est pas disponible sur HTTP. Définissez SOSOAPI_OUTPUT_SCHEMAS=1 pour inclure les schémas de sortie à la découverte. Les outils renvoient des résultats structurés avec ou sans ce réglage.

Autorisations et effets de bord

Les annotations aident les clients à décrire un outil. Chaque appel vérifie toujours l’authentification, le rôle, l’accès aux ressources et les capacités accordées de l’utilisateur.

{
  "readOnlyHint": true,
  "destructiveHint": false,
  "idempotentHint": true,
  "openWorldHint": false
}

Champs d’entrée

Requis signifie requis dans l’objet parent et la branche sélectionnée. Un enfant requis ne rend pas obligatoire un parent facultatif. Les règles et noms de champs ci-dessous proviennent du contrat.

Champs d’entrée
Champ / brancheType / requisContraintes
$objectRequis dans le parent
  • additionalProperties: false
workspace_idstringRequis dans le parent
  • format: "uuid"
import_idstringRequis dans le parent
  • format: "uuid"
include_assetbooleanFacultatif / élément—
JSON Schema complet
{
  "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
}

Sortie structurée

Ce schéma décrit structuredContent dans un résultat d’outil réussi. La réponse MCP contient aussi content et peut définir isError en cas d’échec. Pour publier, lisez le résultat final de la publication plutôt que de considérer une requête acceptée ou une réponse texte comme une confirmation. L’opération API liée explique les autorisations et règles de nouvelle tentative.

Requis signifie requis dans l’objet parent et la branche sélectionnée. Un enfant requis ne rend pas obligatoire un parent facultatif. Les règles et noms de champs ci-dessous proviennent du contrat.

Sortie structurée
Champ / brancheType / requisContraintes
$objectRequis dans le parent
  • additionalProperties: false
importobjectRequis dans le parent
  • additionalProperties: false
import.idstringRequis dans le parent
  • format: "uuid"
import.statusstringRequis dans le parent
  • enum: ["queued","importing","needs_repair","ready","asset_purged","failed"]
import.job_idstring | nullRequis dans le parent—
import.job_idanyOf 1stringRequis dans le parent
  • format: "uuid"
import.job_idanyOf 2nullRequis dans le parent—
import.asset_idinteger | nullRequis dans le parent—
import.asset_idanyOf 1integerRequis dans le parent
  • maximum: 9007199254740991
  • exclusiveMinimum: 0
import.asset_idanyOf 2nullRequis dans le parent—
import.completed_asset_idinteger | nullRequis dans le parent—
import.completed_asset_idanyOf 1integerRequis dans le parent
  • maximum: 9007199254740991
  • exclusiveMinimum: 0
import.completed_asset_idanyOf 2nullRequis dans le parent—
import.asset_purged_atstring | nullRequis dans le parent—
import.asset_purged_atanyOf 1stringRequis dans le parent—
import.asset_purged_atanyOf 2nullRequis dans le parent—
import.source_urlstringRequis dans le parent
  • format: "uri"
import.final_urlstring | nullRequis dans le parent—
import.final_urlanyOf 1stringRequis dans le parent
  • format: "uri"
import.final_urlanyOf 2nullRequis dans le parent—
import.object_keystring | nullRequis dans le parent—
import.object_keyanyOf 1stringRequis dans le parent
  • minLength: 1
import.object_keyanyOf 2nullRequis dans le parent—
import.content_typestring | nullRequis dans le parent—
import.content_typeanyOf 1stringRequis dans le parent
  • minLength: 1
import.content_typeanyOf 2nullRequis dans le parent—
import.byte_sizeinteger | nullRequis dans le parent—
import.byte_sizeanyOf 1integerRequis dans le parent
  • minimum: 0
  • maximum: 9007199254740991
import.byte_sizeanyOf 2nullRequis dans le parent—
import.content_sha256string | nullRequis dans le parent—
import.content_sha256anyOf 1stringRequis dans le parent
  • pattern: "^[0-9a-f]{64}$"
import.content_sha256anyOf 2nullRequis dans le parent—
import.media_probereference | nullRequis dans le parent—
import.media_probeanyOf 1string | number | boolean | null | array | objectRequis dans le parent—
import.media_probeanyOf 1 / anyOf 1stringRequis dans le parent—
import.media_probeanyOf 1 / anyOf 2numberRequis dans le parent—
import.media_probeanyOf 1 / anyOf 3booleanRequis dans le parent—
import.media_probeanyOf 1 / anyOf 4nullRequis dans le parent—
import.media_probeanyOf 1 / anyOf 5arrayRequis dans le parent—
import.media_probe[]anyOf 1 / anyOf 5referenceFacultatif / élément
  • #/definitions/__schema0
import.media_probeanyOf 1 / anyOf 6objectRequis dans le parent
  • additionalProperties: {"$ref":"#/definitions/__schema0"}
import.media_probe.*anyOf 1 / anyOf 6referenceFacultatif / élément
  • #/definitions/__schema0
import.media_probeanyOf 2nullRequis dans le parent—
import.error_messagestring | nullRequis dans le parent—
import.error_messageanyOf 1stringRequis dans le parent—
import.error_messageanyOf 2nullRequis dans le parent—
import.created_atstringRequis dans le parent—
import.completed_atstring | nullRequis dans le parent—
import.completed_atanyOf 1stringRequis dans le parent—
import.completed_atanyOf 2nullRequis dans le parent—
assetobject | nullFacultatif / élément—
assetanyOf 1objectFacultatif / élément
  • additionalProperties: false
asset.idanyOf 1integer | stringRequis dans le parent—
asset.idanyOf 1 / anyOf 1integerRequis dans le parent
  • minimum: -9007199254740991
  • maximum: 9007199254740991
asset.idanyOf 1 / anyOf 2stringRequis dans le parent—
asset.asset_typeanyOf 1stringRequis dans le parent
  • enum: ["text","image","video","audio"]
asset.asset_urlanyOf 1string | nullRequis dans le parent—
asset.asset_urlanyOf 1 / anyOf 1stringRequis dans le parent—
asset.asset_urlanyOf 1 / anyOf 2nullRequis dans le parent—
assetanyOf 2nullFacultatif / élément—
JSON Schema complet
{
  "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"
          }
        }
      ]
    }
  }
}

Exemple d’appel d’outil

Ces exemples utilisent des valeurs fictives vérifiées contre les schémas. Remplacez les identifiants par ceux que vous êtes autorisé à utiliser, les médias par des ressources prêtes et les dates par l’heure confirmée. Vérifiez l’éligibilité du compte avant toute écriture. Cette page n’envoie aucune requête API.

{
  "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
  }
}
Installer ou connecter MCP