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

כלי MCP

יצירת תגובת קהילה

sosoapi_create_comment

הכנסה לתור של תגובה מדויקת אחת לפוסט קנוני או לתגובת יעד קנונית; הסטטוס אינו מעיד על הצלחה אצל הספק.

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

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

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

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

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

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

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

שדות קלט

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

שדות קלט
שדה / ענףסוג / חובהאילוצים
$objectחובה באובייקט האב
  • additionalProperties: false
workspace_idstringחובה באובייקט האב
  • format: "uuid"
social_account_idstringחובה באובייקט האב
  • format: "uuid"
targetobjectחובה באובייקט האב—
targetanyOf 1objectחובה באובייקט האב
  • additionalProperties: false
target.kindanyOf 1stringחובה באובייקט האב
  • enum: ["post"]
target.social_post_idanyOf 1stringחובה באובייקט האב
  • format: "uuid"
targetanyOf 2objectחובה באובייקט האב
  • additionalProperties: false
target.kindanyOf 2stringחובה באובייקט האב
  • enum: ["comment"]
target.social_comment_idanyOf 2stringחובה באובייקט האב
  • format: "uuid"
messagestringחובה באובייקט האב
  • minLength: 1
  • maxLength: 2000
idempotency_keystringחובה באובייקט האב
  • format: "uuid"
JSON Schema מלא
{
  "type": "object",
  "properties": {
    "workspace_id": {
      "type": "string",
      "format": "uuid"
    },
    "social_account_id": {
      "type": "string",
      "format": "uuid"
    },
    "target": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "enum": [
                "post"
              ]
            },
            "social_post_id": {
              "type": "string",
              "format": "uuid"
            }
          },
          "required": [
            "kind",
            "social_post_id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "enum": [
                "comment"
              ]
            },
            "social_comment_id": {
              "type": "string",
              "format": "uuid"
            }
          },
          "required": [
            "kind",
            "social_comment_id"
          ],
          "additionalProperties": false
        }
      ]
    },
    "message": {
      "type": "string",
      "minLength": 1,
      "maxLength": 2000
    },
    "idempotency_key": {
      "type": "string",
      "format": "uuid"
    }
  },
  "required": [
    "workspace_id",
    "social_account_id",
    "target",
    "message",
    "idempotency_key"
  ],
  "additionalProperties": false
}

פלט מובנה

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

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

פלט מובנה
שדה / ענףסוג / חובהאילוצים
$objectחובה באובייקט האב
  • additionalProperties: false
contract_versionstringחובה באובייקט האב
  • const: "community-engagement/v1"
replayedbooleanחובה באובייקט האב—
actionobjectחובה באובייקט האב
  • additionalProperties: false
action.action_idstringחובה באובייקט האב
  • format: "uuid"
action.workspace_idstringחובה באובייקט האב
  • format: "uuid"
action.social_account_idstringחובה באובייקט האב
  • format: "uuid"
action.targetobjectחובה באובייקט האב—
action.targetoneOf 1objectחובה באובייקט האב
  • additionalProperties: false
action.target.kindoneOf 1stringחובה באובייקט האב
  • const: "post"
action.target.social_post_idoneOf 1stringחובה באובייקט האב
  • format: "uuid"
action.targetoneOf 2objectחובה באובייקט האב
  • additionalProperties: false
action.target.kindoneOf 2stringחובה באובייקט האב
  • const: "comment"
action.target.social_post_idoneOf 2stringחובה באובייקט האב
  • format: "uuid"
action.target.social_comment_idoneOf 2stringחובה באובייקט האב
  • format: "uuid"
action.content_sha256stringחובה באובייקט האב
  • pattern: "^[a-f0-9]{64}$"
action.idempotency_keystringחובה באובייקט האב
  • format: "uuid"
action.statusstringחובה באובייקט האב
  • enum: ["queued","executing","succeeded","attention","failed"]
action.poll_after_msintegerחובה באובייקט האב
  • minimum: 0
  • maximum: 300000
JSON Schema מלא
{
  "type": "object",
  "properties": {
    "contract_version": {
      "type": "string",
      "const": "community-engagement/v1"
    },
    "replayed": {
      "type": "boolean"
    },
    "action": {
      "type": "object",
      "properties": {
        "action_id": {
          "type": "string",
          "format": "uuid"
        },
        "workspace_id": {
          "type": "string",
          "format": "uuid"
        },
        "social_account_id": {
          "type": "string",
          "format": "uuid"
        },
        "target": {
          "oneOf": [
            {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "const": "post"
                },
                "social_post_id": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "required": [
                "kind",
                "social_post_id"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "const": "comment"
                },
                "social_post_id": {
                  "type": "string",
                  "format": "uuid"
                },
                "social_comment_id": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "required": [
                "kind",
                "social_post_id",
                "social_comment_id"
              ],
              "additionalProperties": false
            }
          ]
        },
        "content_sha256": {
          "type": "string",
          "pattern": "^[a-f0-9]{64}$"
        },
        "idempotency_key": {
          "type": "string",
          "format": "uuid"
        },
        "status": {
          "type": "string",
          "enum": [
            "queued",
            "executing",
            "succeeded",
            "attention",
            "failed"
          ]
        },
        "poll_after_ms": {
          "type": "integer",
          "minimum": 0,
          "maximum": 300000
        }
      },
      "required": [
        "action_id",
        "workspace_id",
        "social_account_id",
        "target",
        "content_sha256",
        "idempotency_key",
        "status",
        "poll_after_ms"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "contract_version",
    "replayed",
    "action"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}

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

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

{
  "name": "sosoapi_create_comment",
  "arguments": {
    "workspace_id": "11111111-1111-4111-8111-111111111111",
    "social_account_id": "11111111-1111-4111-8111-111111111111",
    "target": {
      "kind": "post",
      "social_post_id": "11111111-1111-4111-8111-111111111111"
    },
    "message": "example",
    "idempotency_key": "11111111-1111-4111-8111-111111111111"
  }
}

structuredContent

{
  "contract_version": "community-engagement/v1",
  "replayed": false,
  "action": {
    "action_id": "11111111-1111-4111-8111-111111111111",
    "workspace_id": "11111111-1111-4111-8111-111111111111",
    "social_account_id": "11111111-1111-4111-8111-111111111111",
    "target": {
      "kind": "post",
      "social_post_id": "11111111-1111-4111-8111-111111111111"
    },
    "content_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    "idempotency_key": "11111111-1111-4111-8111-111111111111",
    "status": "queued",
    "poll_after_ms": 0
  }
}
התקנה או חיבור של MCP