החיפוש נטען רק כשמשתמשים בו. עיינו בכל הקטגוריות שלהלן.

כלי MCP

קבלת סטטוס ייבוא נכס

sosoapi_get_asset_import_status

קריאת ייבוא לפי import_id. לצורך פרסום, העבירו include_asset=true: תוצאה במצב ready כוללת את מזהה הנכס הרשום, הסוג ו-asset_url יציב, וחוסכת קריאת get_asset נפרדת. אי אפשר לתזמן נכסים ממתינים או חסרים. לעולם אין להשתמש ב-URL המקור או התצוגה המקדימה כזהות המדיה. אם הייבוא תקוע, קראו sosoapi_job_status עם job_id; לעולם אין להתחיל ייבוא כפול.

קריאה בפורמט Markdown

פרופילים ואמצעי תעבורה

פרופילים: core, full · אמצעי תעבורה: stdio, http

בחרו core או full כדי לשלוט בכלים שהלקוח רואה; הבחירה אינה משנה את ההרשאות שלו. העלאת קבצים מקומיים דורשת stdio ואינה זמינה דרך HTTP. הגדירו SOSOAPI_OUTPUT_SCHEMAS=1 להכללת סכמות פלט בגילוי הכלים. הכלים מחזירים תוצאות מובנות עם ההגדרה הזו או בלעדיה.

הרשאות והשפעות לוואי

הערות המטא-נתונים עוזרות ללקוחות לתאר כלי. כל קריאה עדיין בודקת את אימות המשתמש, תפקידו, גישתו למשאבים והרשאות היכולות שלו.

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

שדות קלט

שדה חובה נדרש בתוך אובייקט האב והענף הנבחר שלו. צאצא נדרש אינו הופך אב אופציונלי לנדרש. הכללים ושמות השדות שלהלן מועתקים מהחוזה.

שדות קלט
שדה / ענףסוג / חובהאילוצים
$objectחובה באובייקט האב
  • additionalProperties: false
workspace_idstringחובה באובייקט האב
  • format: "uuid"
import_idstringחובה באובייקט האב
  • format: "uuid"
include_assetbooleanרשות / פריט—
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
}

פלט מובנה

הסכמה מתארת את structuredContent בתוצאת כלי מוצלחת. תגובת MCP כוללת גם content ועשויה להגדיר isError כשקריאה נכשלת. בפרסום, קראו את התוצאה הסופית של הפוסט במקום לראות בבקשה שהתקבלה או בתגובת טקסט אישור. פעולת ה-API המקושרת מסבירה הרשאות וכללי ניסיון חוזר.

שדה חובה נדרש בתוך אובייקט האב והענף הנבחר שלו. צאצא נדרש אינו הופך אב אופציונלי לנדרש. הכללים ושמות השדות שלהלן מועתקים מהחוזה.

פלט מובנה
שדה / ענףסוג / חובהאילוצים
$objectחובה באובייקט האב
  • additionalProperties: false
importobjectחובה באובייקט האב
  • additionalProperties: false
import.idstringחובה באובייקט האב
  • format: "uuid"
import.statusstringחובה באובייקט האב
  • enum: ["queued","importing","needs_repair","ready","asset_purged","failed"]
import.job_idstring | nullחובה באובייקט האב—
import.job_idanyOf 1stringחובה באובייקט האב
  • format: "uuid"
import.job_idanyOf 2nullחובה באובייקט האב—
import.asset_idinteger | nullחובה באובייקט האב—
import.asset_idanyOf 1integerחובה באובייקט האב
  • maximum: 9007199254740991
  • exclusiveMinimum: 0
import.asset_idanyOf 2nullחובה באובייקט האב—
import.completed_asset_idinteger | nullחובה באובייקט האב—
import.completed_asset_idanyOf 1integerחובה באובייקט האב
  • maximum: 9007199254740991
  • exclusiveMinimum: 0
import.completed_asset_idanyOf 2nullחובה באובייקט האב—
import.asset_purged_atstring | nullחובה באובייקט האב—
import.asset_purged_atanyOf 1stringחובה באובייקט האב—
import.asset_purged_atanyOf 2nullחובה באובייקט האב—
import.source_urlstringחובה באובייקט האב
  • format: "uri"
import.final_urlstring | nullחובה באובייקט האב—
import.final_urlanyOf 1stringחובה באובייקט האב
  • format: "uri"
import.final_urlanyOf 2nullחובה באובייקט האב—
import.object_keystring | nullחובה באובייקט האב—
import.object_keyanyOf 1stringחובה באובייקט האב
  • minLength: 1
import.object_keyanyOf 2nullחובה באובייקט האב—
import.content_typestring | nullחובה באובייקט האב—
import.content_typeanyOf 1stringחובה באובייקט האב
  • minLength: 1
import.content_typeanyOf 2nullחובה באובייקט האב—
import.byte_sizeinteger | nullחובה באובייקט האב—
import.byte_sizeanyOf 1integerחובה באובייקט האב
  • minimum: 0
  • maximum: 9007199254740991
import.byte_sizeanyOf 2nullחובה באובייקט האב—
import.content_sha256string | nullחובה באובייקט האב—
import.content_sha256anyOf 1stringחובה באובייקט האב
  • pattern: "^[0-9a-f]{64}$"
import.content_sha256anyOf 2nullחובה באובייקט האב—
import.media_probereference | nullחובה באובייקט האב—
import.media_probeanyOf 1string | number | boolean | null | array | objectחובה באובייקט האב—
import.media_probeanyOf 1 / anyOf 1stringחובה באובייקט האב—
import.media_probeanyOf 1 / anyOf 2numberחובה באובייקט האב—
import.media_probeanyOf 1 / anyOf 3booleanחובה באובייקט האב—
import.media_probeanyOf 1 / anyOf 4nullחובה באובייקט האב—
import.media_probeanyOf 1 / anyOf 5arrayחובה באובייקט האב—
import.media_probe[]anyOf 1 / anyOf 5referenceרשות / פריט
  • #/definitions/__schema0
import.media_probeanyOf 1 / anyOf 6objectחובה באובייקט האב
  • additionalProperties: {"$ref":"#/definitions/__schema0"}
import.media_probe.*anyOf 1 / anyOf 6referenceרשות / פריט
  • #/definitions/__schema0
import.media_probeanyOf 2nullחובה באובייקט האב—
import.error_messagestring | nullחובה באובייקט האב—
import.error_messageanyOf 1stringחובה באובייקט האב—
import.error_messageanyOf 2nullחובה באובייקט האב—
import.created_atstringחובה באובייקט האב—
import.completed_atstring | nullחובה באובייקט האב—
import.completed_atanyOf 1stringחובה באובייקט האב—
import.completed_atanyOf 2nullחובה באובייקט האב—
assetobject | nullרשות / פריט—
assetanyOf 1objectרשות / פריט
  • additionalProperties: false
asset.idanyOf 1integer | stringחובה באובייקט האב—
asset.idanyOf 1 / anyOf 1integerחובה באובייקט האב
  • minimum: -9007199254740991
  • maximum: 9007199254740991
asset.idanyOf 1 / anyOf 2stringחובה באובייקט האב—
asset.asset_typeanyOf 1stringחובה באובייקט האב
  • enum: ["text","image","video","audio"]
asset.asset_urlanyOf 1string | nullחובה באובייקט האב—
asset.asset_urlanyOf 1 / anyOf 1stringחובה באובייקט האב—
asset.asset_urlanyOf 1 / anyOf 2nullחובה באובייקט האב—
assetanyOf 2nullרשות / פריט—
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"
          }
        }
      ]
    }
  }
}

דוגמת קריאה לכלי

הדוגמאות משתמשות בערכים בדויים שנבדקו מול הסכמות. החליפו את המזהים בכאלה שאתם מורשים להשתמש בהם, את המדיה בנכסים מוכנים ואת התאריכים במועד הפרסום שאישרתם. בדקו את התאמת החשבון לפני שליחת כתיבה. העמוד הזה אינו שולח בקשות 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
  }
}
התקנה או חיבור של MCP