खोज केवल इस्तेमाल करने पर लोड होती है। नीचे सभी श्रेणियाँ देखें।

MCP टूल

यूज़र प्रोफ़ाइल अपडेट करें

sosoapi_update_user_profile

साइन इन किए यूज़र की अपनी प्रोफ़ाइल बदलें (display_name, timezone, avatar_url, theme)। केवल बदलने वाले फ़ील्ड भेजें।

Markdown में पढ़ें

प्रोफ़ाइल और ट्रांसपोर्ट

प्रोफ़ाइल: full · ट्रांसपोर्ट: stdio, http

क्लाइंट में दिखने वाले टूल के लिए core या full चुनें; इससे अनुमतियाँ नहीं बदलतीं। लोकल फ़ाइल अपलोड के लिए stdio चाहिए और HTTP पर उपलब्ध नहीं। खोज में आउटपुट स्कीमा के लिए SOSOAPI_OUTPUT_SCHEMAS=1 सेट करें। इस सेटिंग के साथ या बिना टूल संरचित परिणाम लौटाते हैं।

अनुमतियाँ और अन्य प्रभाव

एनोटेशन क्लाइंट को टूल का वर्णन करने में मदद करते हैं। हर कॉल फिर भी यूज़र का प्रमाणीकरण, भूमिका, संसाधन एक्सेस और क्षमता अधिकार जाँचती है।

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

इनपुट फ़ील्ड

Required का अर्थ पैरेंट ऑब्जेक्ट और चुनी शाखा के भीतर अनिवार्य है। अनिवार्य चाइल्ड से वैकल्पिक पैरेंट अनिवार्य नहीं होता। नीचे के नियम और फ़ील्ड नाम कॉन्ट्रैक्ट से लिए गए हैं।

इनपुट फ़ील्ड
फ़ील्ड / शाखाप्रकार / अनिवार्यशर्तें
$objectपैरेंट में अनिवार्य
  • additionalProperties: false
display_namestringवैकल्पिक / आइटम
  • minLength: 0
  • maxLength: 120
timezonestringवैकल्पिक / आइटम
  • minLength: 1
  • maxLength: 64
avatar_urlstringवैकल्पिक / आइटम
  • minLength: 0
  • maxLength: 2048
themestringवैकल्पिक / आइटम
  • enum: ["light","dark","system"]
expected_versionintegerवैकल्पिक / आइटम

वैकल्पिक। आपके द्वारा पढ़ा गया संस्करण। उसके बाद बदला हो, तो ओवरराइट करने के बजाय अपडेट 409 VERSION_CONFLICT के साथ विफल होता है।

  • maximum: 2147483647
  • exclusiveMinimum: 0
include_versionbooleanवैकल्पिक / आइटम

वैकल्पिक। true से उत्तर में संसाधन का संस्करण जुड़ता है।

—
संपूर्ण JSON Schema
{
  "type": "object",
  "properties": {
    "display_name": {
      "type": "string",
      "minLength": 0,
      "maxLength": 120
    },
    "timezone": {
      "type": "string",
      "minLength": 1,
      "maxLength": 64
    },
    "avatar_url": {
      "type": "string",
      "minLength": 0,
      "maxLength": 2048
    },
    "theme": {
      "type": "string",
      "enum": [
        "light",
        "dark",
        "system"
      ]
    },
    "expected_version": {
      "description": "Optional. The version you read. If it changed since, the update fails with 409 VERSION_CONFLICT instead of overwriting.",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 2147483647
    },
    "include_version": {
      "description": "Optional. true adds the resource version to the answer.",
      "type": "boolean"
    }
  },
  "additionalProperties": false
}

संरचित आउटपुट

यह स्कीमा सफल टूल परिणाम के structuredContent का वर्णन करता है। MCP रिस्पॉन्स में content भी होता है और कॉल विफल होने पर isError सेट हो सकता है। प्रकाशन के लिए स्वीकृत अनुरोध या टेक्स्ट रिस्पॉन्स को पुष्टि मानने के बजाय पोस्ट का अंतिम परिणाम पढ़ें। लिंक किया गया API ऑपरेशन अनुमतियाँ और पुनः प्रयास के नियम समझाता है।

Required का अर्थ पैरेंट ऑब्जेक्ट और चुनी शाखा के भीतर अनिवार्य है। अनिवार्य चाइल्ड से वैकल्पिक पैरेंट अनिवार्य नहीं होता। नीचे के नियम और फ़ील्ड नाम कॉन्ट्रैक्ट से लिए गए हैं।

संरचित आउटपुट
फ़ील्ड / शाखाप्रकार / अनिवार्यशर्तें
$objectपैरेंट में अनिवार्य
  • additionalProperties: false
actionstringपैरेंट में अनिवार्य
  • const: "update"
profileobjectपैरेंट में अनिवार्य
  • additionalProperties: false
profile.user_idstringपैरेंट में अनिवार्य
  • format: "uuid"
profile.display_namestring | nullपैरेंट में अनिवार्य—
profile.display_nameanyOf 1stringपैरेंट में अनिवार्य—
profile.display_nameanyOf 2nullपैरेंट में अनिवार्य—
profile.timezonestring | nullपैरेंट में अनिवार्य—
profile.timezoneanyOf 1stringपैरेंट में अनिवार्य—
profile.timezoneanyOf 2nullपैरेंट में अनिवार्य—
profile.avatar_urlstring | nullपैरेंट में अनिवार्य—
profile.avatar_urlanyOf 1stringपैरेंट में अनिवार्य—
profile.avatar_urlanyOf 2nullपैरेंट में अनिवार्य—
profile.avatar_preview_urlstring | nullवैकल्पिक / आइटम—
profile.avatar_preview_urlanyOf 1stringवैकल्पिक / आइटम
  • format: "uri"
profile.avatar_preview_urlanyOf 2nullवैकल्पिक / आइटम—
profile.avatar_preview_expires_atstring | nullवैकल्पिक / आइटम—
profile.avatar_preview_expires_atanyOf 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 2nullवैकल्पिक / आइटम—
profile.themestring | nullपैरेंट में अनिवार्य—
profile.themeanyOf 1stringपैरेंट में अनिवार्य
  • enum: ["light","dark","system"]
profile.themeanyOf 2nullपैरेंट में अनिवार्य—
profile.created_atstring | nullपैरेंट में अनिवार्य—
profile.created_atanyOf 1stringपैरेंट में अनिवार्य—
profile.created_atanyOf 2nullपैरेंट में अनिवार्य—
profile.updated_atstring | nullपैरेंट में अनिवार्य—
profile.updated_atanyOf 1stringपैरेंट में अनिवार्य—
profile.updated_atanyOf 2nullपैरेंट में अनिवार्य—
profile.deletion_scheduled_atstring | nullपैरेंट में अनिवार्य—
profile.deletion_scheduled_atanyOf 1stringपैरेंट में अनिवार्य—
profile.deletion_scheduled_atanyOf 2nullपैरेंट में अनिवार्य—
profile.hard_delete_atstring | nullपैरेंट में अनिवार्य—
profile.hard_delete_atanyOf 1stringपैरेंट में अनिवार्य—
profile.hard_delete_atanyOf 2nullपैरेंट में अनिवार्य—
profile.versionintegerवैकल्पिक / आइटम
  • maximum: 9007199254740991
  • exclusiveMinimum: 0
संपूर्ण JSON Schema
{
  "type": "object",
  "properties": {
    "action": {
      "type": "string",
      "const": "update"
    },
    "profile": {
      "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
    }
  },
  "required": [
    "action",
    "profile"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}

टूल कॉल का उदाहरण

उदाहरणों में स्कीमा से जाँचे काल्पनिक मान हैं। IDs को अधिकृत IDs, मीडिया को तैयार एसेट और तारीखों को पुष्ट प्रकाशन समय से बदलें। राइट सबमिट करने से पहले खाते की पात्रता जाँचें। यह पेज API अनुरोध नहीं भेजता।

{
  "name": "sosoapi_update_user_profile",
  "arguments": {}
}

structuredContent

{
  "action": "update",
  "profile": {
    "user_id": "11111111-1111-4111-8111-111111111111",
    "display_name": null,
    "timezone": null,
    "avatar_url": null,
    "theme": null,
    "created_at": null,
    "updated_at": null,
    "deletion_scheduled_at": null,
    "hard_delete_at": null
  }
}
MCP इंस्टॉल या कनेक्ट करें