כלי MCP
קריאת הקשר המותג של סביבת העבודה
sosoapi_get_workspace_brand_contextקראו הנחיות מותג שאושרו ידנית ואת מקור הגרסה שאינה ניתנת לשינוי, עם workspace_id מפורש. נדרש תפקיד viewer ומעלה, ובגישת סוכנים גם agent:operate. השמיטו selection לקריאת ההקשר הנוכחי, או העבירו בדיוק את ה־selection הבלתי משתנה שהוחזרה קודם. שדות עריכה אינם מהימנים; הקשר null או missing אינו מספק הנחיות. הקריאה אינה יוצרת טקסט לפוסטים, אינה מושכת מקורות, אינה משנה הגדרות ואינה מפרסמת.
קריאה בפורמט Markdownפרופילים ואמצעי תעבורה
פרופילים: core, full · אמצעי תעבורה: stdio, http
בחרו core או full כדי לשלוט בכלים שהלקוח רואה; הבחירה אינה משנה את ההרשאות שלו. העלאת קבצים מקומיים דורשת stdio ואינה זמינה דרך HTTP. הגדירו SOSOAPI_OUTPUT_SCHEMAS=1 להכללת סכמות פלט בגילוי הכלים. הכלים מחזירים תוצאות מובנות עם ההגדרה הזו או בלעדיה.
הרשאות והשפעות לוואי
הערות המטא-נתונים עוזרות ללקוחות לתאר כלי. כל קריאה עדיין בודקת את אימות המשתמש, תפקידו, גישתו למשאבים והרשאות היכולות שלו.
{
"readOnlyHint": true,
"destructiveHint": false,
"idempotentHint": true,
"openWorldHint": true
}- /studio-api/workspace-brand-profile/context-read: agent:operate · workspace_brand_immutable_manual_context_read
שדות קלט
שדה חובה נדרש בתוך אובייקט האב והענף הנבחר שלו. צאצא נדרש אינו הופך אב אופציונלי לנדרש. הכללים ושמות השדות שלהלן מועתקים מהחוזה.
| שדה / ענף | סוג / חובה | אילוצים |
|---|---|---|
$ | objectחובה באובייקט האב |
|
workspace_id | stringחובה באובייקט האב |
|
selection | objectרשות / פריט |
|
selection.profile_id | stringחובה באובייקט האב |
|
selection.version_id | stringחובה באובייקט האב |
|
selection.revision | integerחובה באובייקט האב |
|
selection.content_digest | stringחובה באובייקט האב |
|
selection.context_digest | stringחובה באובייקט האב |
|
JSON Schema מלא
{
"type": "object",
"properties": {
"workspace_id": {
"type": "string",
"format": "uuid"
},
"selection": {
"type": "object",
"properties": {
"profile_id": {
"type": "string",
"format": "uuid"
},
"version_id": {
"type": "string",
"format": "uuid"
},
"revision": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"content_digest": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"context_digest": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
}
},
"required": [
"profile_id",
"version_id",
"revision",
"content_digest",
"context_digest"
],
"additionalProperties": false
}
},
"required": [
"workspace_id"
],
"additionalProperties": false
}פלט מובנה
הסכמה מתארת את structuredContent בתוצאת כלי מוצלחת. תגובת MCP כוללת גם content ועשויה להגדיר isError כשקריאה נכשלת. בפרסום, קראו את התוצאה הסופית של הפוסט במקום לראות בבקשה שהתקבלה או בתגובת טקסט אישור. פעולת ה-API המקושרת מסבירה הרשאות וכללי ניסיון חוזר.
שדה חובה נדרש בתוך אובייקט האב והענף הנבחר שלו. צאצא נדרש אינו הופך אב אופציונלי לנדרש. הכללים ושמות השדות שלהלן מועתקים מהחוזה.
| שדה / ענף | סוג / חובה | אילוצים |
|---|---|---|
$ | objectחובה באובייקט האב |
|
context | object | nullחובה באובייקט האב | — |
contextanyOf 1 | objectחובה באובייקט האב |
|
context.workspace_idanyOf 1 | stringחובה באובייקט האב |
|
context.selectionanyOf 1 | objectחובה באובייקט האב |
|
context.selection.profile_idanyOf 1 | stringחובה באובייקט האב |
|
context.selection.version_idanyOf 1 | stringחובה באובייקט האב |
|
context.selection.revisionanyOf 1 | integerחובה באובייקט האב |
|
context.selection.content_digestanyOf 1 | stringחובה באובייקט האב |
|
context.selection.context_digestanyOf 1 | stringחובה באובייקט האב |
|
context.availabilityanyOf 1 | stringחובה באובייקט האב |
|
context.profile_stateanyOf 1 | string | nullחובה באובייקט האב | — |
context.profile_stateanyOf 1 / anyOf 1 | stringחובה באובייקט האב |
|
context.profile_stateanyOf 1 / anyOf 2 | nullחובה באובייקט האב | — |
context.contentanyOf 1 | object | nullחובה באובייקט האב | — |
context.contentanyOf 1 / anyOf 1 | objectחובה באובייקט האב |
|
context.content.nameanyOf 1 / anyOf 1 | stringחובה באובייקט האב |
|
context.content.audienceanyOf 1 / anyOf 1 | stringחובה באובייקט האב |
|
context.content.voiceanyOf 1 / anyOf 1 | stringחובה באובייקט האב |
|
context.content.languageanyOf 1 / anyOf 1 | string | nullחובה באובייקט האב | — |
context.content.languageanyOf 1 / anyOf 1 / anyOf 1 | stringחובה באובייקט האב |
|
context.content.languageanyOf 1 / anyOf 1 / anyOf 2 | nullחובה באובייקט האב | — |
context.content.preferred_termsanyOf 1 / anyOf 1 | arrayחובה באובייקט האב |
|
context.content.preferred_terms[]anyOf 1 / anyOf 1 | stringרשות / פריט |
|
context.content.prohibited_termsanyOf 1 / anyOf 1 | arrayחובה באובייקט האב |
|
context.content.prohibited_terms[]anyOf 1 / anyOf 1 | stringרשות / פריט |
|
context.content.locked_factsanyOf 1 / anyOf 1 | arrayחובה באובייקט האב |
|
context.content.locked_facts[]anyOf 1 / anyOf 1 | stringרשות / פריט |
|
context.content.call_to_actionanyOf 1 / anyOf 1 | string | nullחובה באובייקט האב | — |
context.content.call_to_actionanyOf 1 / anyOf 1 / anyOf 1 | stringחובה באובייקט האב |
|
context.content.call_to_actionanyOf 1 / anyOf 1 / anyOf 2 | nullחובה באובייקט האב | — |
context.contentanyOf 1 / anyOf 2 | nullחובה באובייקט האב | — |
context.sourcesanyOf 1 | objectחובה באובייקט האב |
|
context.sources.websiteanyOf 1 | stringחובה באובייקט האב |
|
context.sources.logoanyOf 1 | stringחובה באובייקט האב |
|
context.sources.own_postsanyOf 1 | objectחובה באובייקט האב |
|
context.sources.own_posts.selectedanyOf 1 | integerחובה באובייקט האב |
|
context.sources.own_posts.availableanyOf 1 | integerחובה באובייקט האב |
|
context.sources.own_posts.unavailableanyOf 1 | integerחובה באובייקט האב |
|
context.sources.own_posts.erasedanyOf 1 | integerחובה באובייקט האב |
|
contextanyOf 2 | nullחובה באובייקט האב | — |
JSON Schema מלא
{
"type": "object",
"properties": {
"context": {
"anyOf": [
{
"type": "object",
"properties": {
"workspace_id": {
"type": "string",
"format": "uuid"
},
"selection": {
"type": "object",
"properties": {
"profile_id": {
"type": "string",
"format": "uuid"
},
"version_id": {
"type": "string",
"format": "uuid"
},
"revision": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"content_digest": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"context_digest": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
}
},
"required": [
"profile_id",
"version_id",
"revision",
"content_digest",
"context_digest"
],
"additionalProperties": false
},
"availability": {
"type": "string",
"enum": [
"available",
"missing"
]
},
"profile_state": {
"anyOf": [
{
"type": "string",
"enum": [
"active",
"archived"
]
},
{
"type": "null"
}
]
},
"content": {
"anyOf": [
{
"type": "object",
"properties": {
"name": {
"type": "string",
"maxLength": 120
},
"audience": {
"type": "string",
"maxLength": 2000
},
"voice": {
"type": "string",
"maxLength": 2000
},
"language": {
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 64
},
{
"type": "null"
}
]
},
"preferred_terms": {
"maxItems": 50,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 120
}
},
"prohibited_terms": {
"maxItems": 50,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 120
}
},
"locked_facts": {
"maxItems": 50,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 500
}
},
"call_to_action": {
"anyOf": [
{
"type": "string",
"maxLength": 1000
},
{
"type": "null"
}
]
}
},
"required": [
"name",
"audience",
"voice",
"language",
"preferred_terms",
"prohibited_terms",
"locked_facts",
"call_to_action"
],
"additionalProperties": false
},
{
"type": "null"
}
]
},
"sources": {
"type": "object",
"properties": {
"website": {
"type": "string",
"enum": [
"available",
"not_available"
]
},
"logo": {
"type": "string",
"enum": [
"none",
"present",
"missing"
]
},
"own_posts": {
"type": "object",
"properties": {
"selected": {
"type": "integer",
"minimum": 0,
"maximum": 10
},
"available": {
"type": "integer",
"minimum": 0,
"maximum": 10
},
"unavailable": {
"type": "integer",
"minimum": 0,
"maximum": 10
},
"erased": {
"type": "integer",
"minimum": 0,
"maximum": 10
}
},
"required": [
"selected",
"available",
"unavailable",
"erased"
],
"additionalProperties": false
}
},
"required": [
"website",
"logo",
"own_posts"
],
"additionalProperties": false
}
},
"required": [
"workspace_id",
"selection",
"availability",
"profile_state",
"content",
"sources"
],
"additionalProperties": false
},
{
"type": "null"
}
]
}
},
"required": [
"context"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}דוגמת קריאה לכלי
הדוגמאות משתמשות בערכים בדויים שנבדקו מול הסכמות. החליפו את המזהים בכאלה שאתם מורשים להשתמש בהם, את המדיה בנכסים מוכנים ואת התאריכים במועד הפרסום שאישרתם. בדקו את התאמת החשבון לפני שליחת כתיבה. העמוד הזה אינו שולח בקשות API.
{
"name": "sosoapi_get_workspace_brand_context",
"arguments": {
"workspace_id": "11111111-1111-4111-8111-111111111111"
}
}structuredContent
{
"context": null
}