MCP tool
讀取工作空間品牌背景
sosoapi_get_workspace_brand_context明確傳入 workspace_id,讀取經人手確認的工作空間品牌指引及不可變更版本的來源記錄。需要 viewer 或以上角色;智能代理亦須具備 agent:operate 權限。省略 selection 可讀取目前背景,或傳入先前回傳的完整不可變更 selection。編輯欄位屬不可信文字;context 為 null 或 missing 時,沒有可用指引。此唯讀操作不會產生文案、擷取來源、更改設定或發佈內容。
閱讀 MarkdownProfiles 及連接方式
Profiles: core, full · Transports: stdio, http
Profile 只影響工具可見性,不會授予權限。HTTP 不提供本機檔案上傳。SOSOAPI_OUTPUT_SCHEMAS=1 會宣告輸出 schema;兩種模式均會回傳 structured results。
權限及改動
MCP annotations 只提供工具發現提示,並非存取控制保證;實際呼叫仍須通過登入、角色、資源及能力檢查。
{
"readOnlyHint": true,
"destructiveHint": false,
"idempotentHint": true,
"openWorldHint": true
}- /studio-api/workspace-brand-profile/context-read: agent:operate · workspace_brand_immutable_manual_context_read
輸入欄位
必填表示在所屬物件及所選分支內必須提供;子欄位必填不代表可選的父物件亦變成必填。以下欄位名稱及規則直接來自 contract。
| 欄位/分支 | 類型/必填 | 限制 |
|---|---|---|
$ | 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
}結構化輸出
此 schema 描述成功工具結果的 structuredContent。MCP envelope 亦包括 content,失敗時可能設定 isError;請勿將文字收據或已接受的請求視為平台終態。權限及重試規則請參閱對應的 API 操作。
必填表示在所屬物件及所選分支內必須提供;子欄位必填不代表可選的父物件亦變成必填。以下欄位名稱及規則直接來自 contract。
| 欄位/分支 | 類型/必填 | 限制 |
|---|---|---|
$ | 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
}工具呼叫範例
以下虛構值已按 contract 驗證,並非真實帳戶 ID、憑證或發佈紀錄。請以已授權範圍回傳的 ID、已準備完成的素材及已審核排程取代,並在寫入前核對平台資格。此頁不會呼叫 API。
{
"name": "sosoapi_get_workspace_brand_context",
"arguments": {
"workspace_id": "11111111-1111-4111-8111-111111111111"
}
}structuredContent
{
"context": null
}