# جلب الإعدادات الافتراضية لحساب المشروع

الرابط الأساسي: https://sosoapi.ai/ar/docs/mcp/get-project-account-defaults

`sosoapi_get_project_account_defaults`

قراءة الحسابات الاجتماعية الافتراضية لمشروع وتجاوزات كل حساب، مع defaults_version اللازم للاستبدال التالي.

## الملفات التعريفية ووسائل النقل

الملفات التعريفية: full

وسائل النقل: stdio, http

اختر core أو full للأدوات التي يراها عميلك؛ لا يغيّر ذلك أذوناته. يحتاج رفع الملفات المحلية stdio ولا يتاح بـ HTTP. اضبط SOSOAPI_OUTPUT_SCHEMAS=1 لمخططات المخرجات بالاكتشاف. النتائج منظّمة بهذا الإعداد أوبدونه.

## الأذونات والآثار الجانبية

تساعد الشروح العملاء على وصف الأداة. يظل كل استدعاء يفحص مصادقة المستخدم ودوره ووصوله إلى المورد وتفويض الإمكانات.

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

`/studio-api/projects/account-defaults/get` — agent:operate; synchronous_http_response

## حقول الإدخال

```json
{
  "type": "object",
  "properties": {
    "project_id": {
      "type": "string",
      "format": "uuid"
    }
  },
  "required": [
    "project_id"
  ],
  "additionalProperties": false
}
```

## مخرجات منظّمة

يصف المخطط structuredContent في نتيجة أداة ناجحة. تشمل استجابة MCP أيضاً content وقد تضبط isError عند الفشل. للنشر، اقرأ النتيجة النهائية بدلاً من اعتبار القبول أوالنص تأكيداً. تشرح عملية API المرتبطة الأذونات وقواعد المحاولة.

```json
{
  "type": "object",
  "properties": {
    "project_id": {
      "type": "string",
      "format": "uuid"
    },
    "defaults_version": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "accounts": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "social_account_id": {
            "type": "string",
            "format": "uuid"
          },
          "workspace_id": {
            "type": "string",
            "format": "uuid"
          },
          "platform": {
            "type": "string",
            "enum": [
              "instagram",
              "threads",
              "facebook",
              "youtube",
              "x"
            ]
          },
          "platform_user_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "username": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "facebook_page_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "enabled": {
            "type": "boolean"
          },
          "language": {
            "type": "string",
            "minLength": 1,
            "maxLength": 35
          },
          "region": {
            "type": "string",
            "minLength": 1,
            "maxLength": 16
          },
          "timezone": {
            "type": "string",
            "minLength": 1,
            "maxLength": 80
          },
          "resolution_source": {
            "type": "string",
            "enum": [
              "project_default",
              "workspace_default",
              "connected_account"
            ]
          }
        },
        "required": [
          "social_account_id",
          "workspace_id",
          "platform",
          "platform_user_id",
          "username",
          "facebook_page_name",
          "enabled",
          "language",
          "region",
          "timezone",
          "resolution_source"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "project_id",
    "defaults_version",
    "accounts"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}
```

## مثال لاستدعاء أداة

تستخدم الأمثلة قيماً خيالية مفحوصة بالمخططات. استبدل المعرّفات بالمفوّض لك، والوسائط بأصول جاهزة، والتواريخ بوقت نشر مؤكد. افحص أهلية الحساب قبل الكتابة. لا تُرسل الصفحة طلبات API.

```json
{
  "name": "sosoapi_get_project_account_defaults",
  "arguments": {
    "project_id": "11111111-1111-4111-8111-111111111111"
  }
}
```

structuredContent

```json
{
  "project_id": "11111111-1111-4111-8111-111111111111",
  "defaults_version": 1,
  "accounts": []
}
```

## عمليات API الأساسية

- [/studio-api/projects/account-defaults/get](https://sosoapi.ai/ar/docs/api/studio-api-projects-account-defaults-get)
