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

כלי MCP

קבלת פרופיל משתמש

sosoapi_get_user_profile

קריאת הפרופיל של המשתמש המחובר עצמו (שם תצוגה, אזור זמן, תמונת פרופיל, ערכת נושא); profile הוא null עד שקיים פרופיל.

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

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

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

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

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

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

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

שדות קלט

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

שדות קלט
שדה / ענףסוג / חובהאילוצים
$objectחובה באובייקט האב
  • additionalProperties: false
include_versionbooleanרשות / פריט

רשות. true מוסיף את גרסת המשאב לתשובה.

—
JSON Schema מלא
{
  "type": "object",
  "properties": {
    "include_version": {
      "description": "Optional. true adds the resource version to the answer.",
      "type": "boolean"
    }
  },
  "additionalProperties": false
}

פלט מובנה

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

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

פלט מובנה
שדה / ענףסוג / חובהאילוצים
$objectחובה באובייקט האב
  • additionalProperties: false
actionstringחובה באובייקט האב
  • const: "get"
profileobject | nullחובה באובייקט האב—
profileanyOf 1objectחובה באובייקט האב
  • additionalProperties: false
profile.user_idanyOf 1stringחובה באובייקט האב
  • format: "uuid"
profile.display_nameanyOf 1string | nullחובה באובייקט האב—
profile.display_nameanyOf 1 / anyOf 1stringחובה באובייקט האב—
profile.display_nameanyOf 1 / anyOf 2nullחובה באובייקט האב—
profile.timezoneanyOf 1string | nullחובה באובייקט האב—
profile.timezoneanyOf 1 / anyOf 1stringחובה באובייקט האב—
profile.timezoneanyOf 1 / anyOf 2nullחובה באובייקט האב—
profile.avatar_urlanyOf 1string | nullחובה באובייקט האב—
profile.avatar_urlanyOf 1 / anyOf 1stringחובה באובייקט האב—
profile.avatar_urlanyOf 1 / anyOf 2nullחובה באובייקט האב—
profile.avatar_preview_urlanyOf 1string | nullרשות / פריט—
profile.avatar_preview_urlanyOf 1 / anyOf 1stringרשות / פריט
  • format: "uri"
profile.avatar_preview_urlanyOf 1 / anyOf 2nullרשות / פריט—
profile.avatar_preview_expires_atanyOf 1string | nullרשות / פריט—
profile.avatar_preview_expires_atanyOf 1 / anyOf 1stringרשות / פריט
  • format: "date-time"
  • pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
profile.avatar_preview_expires_atanyOf 1 / anyOf 2nullרשות / פריט—
profile.themeanyOf 1string | nullחובה באובייקט האב—
profile.themeanyOf 1 / anyOf 1stringחובה באובייקט האב
  • enum: ["light","dark","system"]
profile.themeanyOf 1 / anyOf 2nullחובה באובייקט האב—
profile.created_atanyOf 1string | nullחובה באובייקט האב—
profile.created_atanyOf 1 / anyOf 1stringחובה באובייקט האב—
profile.created_atanyOf 1 / anyOf 2nullחובה באובייקט האב—
profile.updated_atanyOf 1string | nullחובה באובייקט האב—
profile.updated_atanyOf 1 / anyOf 1stringחובה באובייקט האב—
profile.updated_atanyOf 1 / anyOf 2nullחובה באובייקט האב—
profile.deletion_scheduled_atanyOf 1string | nullחובה באובייקט האב—
profile.deletion_scheduled_atanyOf 1 / anyOf 1stringחובה באובייקט האב—
profile.deletion_scheduled_atanyOf 1 / anyOf 2nullחובה באובייקט האב—
profile.hard_delete_atanyOf 1string | nullחובה באובייקט האב—
profile.hard_delete_atanyOf 1 / anyOf 1stringחובה באובייקט האב—
profile.hard_delete_atanyOf 1 / anyOf 2nullחובה באובייקט האב—
profile.versionanyOf 1integerרשות / פריט
  • maximum: 9007199254740991
  • exclusiveMinimum: 0
profileanyOf 2nullחובה באובייקט האב—
JSON Schema מלא
{
  "type": "object",
  "properties": {
    "action": {
      "type": "string",
      "const": "get"
    },
    "profile": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "user_id": {
              "type": "string",
              "format": "uuid"
            },
            "display_name": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "timezone": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "avatar_url": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "avatar_preview_url": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "uri"
                },
                {
                  "type": "null"
                }
              ]
            },
            "avatar_preview_expires_at": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                },
                {
                  "type": "null"
                }
              ]
            },
            "theme": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "light",
                    "dark",
                    "system"
                  ]
                },
                {
                  "type": "null"
                }
              ]
            },
            "created_at": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "updated_at": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "deletion_scheduled_at": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "hard_delete_at": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "version": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            }
          },
          "required": [
            "user_id",
            "display_name",
            "timezone",
            "avatar_url",
            "theme",
            "created_at",
            "updated_at",
            "deletion_scheduled_at",
            "hard_delete_at"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "action",
    "profile"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}

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

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

{
  "name": "sosoapi_get_user_profile",
  "arguments": {}
}

structuredContent

{
  "action": "get",
  "profile": null
}
התקנה או חיבור של MCP